Add missing -Zjson-target-spec for m68k sysroot build

This commit is contained in:
Antoni Boucher 2026-02-13 10:39:24 -05:00
parent ec2996cfba
commit 4a6f0bebfb

View file

@ -141,6 +141,10 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu
}
let mut args: Vec<&dyn AsRef<OsStr>> = vec![&"cargo", &"build", &"--target", &config.target];
if config.target.ends_with(".json") {
args.push(&"-Zjson-target-spec");
}
for feature in &config.features {
args.push(&"--features");
args.push(feature);