Skip to content

Commit 4a6f0be

Browse files
committed
Add missing -Zjson-target-spec for m68k sysroot build
1 parent ec2996c commit 4a6f0be

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build_system/src/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu
141141
}
142142

143143
let mut args: Vec<&dyn AsRef<OsStr>> = vec![&"cargo", &"build", &"--target", &config.target];
144+
if config.target.ends_with(".json") {
145+
args.push(&"-Zjson-target-spec");
146+
}
147+
144148
for feature in &config.features {
145149
args.push(&"--features");
146150
args.push(feature);

0 commit comments

Comments
 (0)