From 4a6f0bebfb8c14ea11cbdc443d9803f750dbd934 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Fri, 13 Feb 2026 10:39:24 -0500 Subject: [PATCH] Add missing -Zjson-target-spec for m68k sysroot build --- build_system/src/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_system/src/build.rs b/build_system/src/build.rs index 9b7ee8380ca5..839c762fed74 100644 --- a/build_system/src/build.rs +++ b/build_system/src/build.rs @@ -141,6 +141,10 @@ pub fn build_sysroot(env: &HashMap, config: &ConfigInfo) -> Resu } let mut args: Vec<&dyn AsRef> = 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);