From 8fb9db58a4fb8990e2ba8c27c2b8cd0b40783681 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 27 Feb 2026 08:41:37 +0100 Subject: [PATCH] Fix bootloader build by passing `-Zjson-target-spec` Required on latest nightlies This fix is mostly needed when the kernel uses the built-in x86_64-unknown-none target. Otherwise the user probably already has enabled the `json-target-spec` feature through a `.cargo/config.toml` file, which then also applies to the bootloader build. --- src/builder/bootloader.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/builder/bootloader.rs b/src/builder/bootloader.rs index 5753fc1..2f956bc 100644 --- a/src/builder/bootloader.rs +++ b/src/builder/bootloader.rs @@ -124,6 +124,7 @@ impl BuildConfig { cmd.arg("--features") .arg(self.features.as_slice().join(" ")); cmd.arg("--target").arg(&self.target); + cmd.arg("-Zjson-target-spec"); cmd.arg("--release"); cmd.env("KERNEL", &self.kernel_bin_path); cmd.env("KERNEL_MANIFEST", &self.kernel_manifest_path);