Skip to content

Commit 8fb9db5

Browse files
committed
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.
1 parent 9b4837b commit 8fb9db5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/builder/bootloader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ impl BuildConfig {
124124
cmd.arg("--features")
125125
.arg(self.features.as_slice().join(" "));
126126
cmd.arg("--target").arg(&self.target);
127+
cmd.arg("-Zjson-target-spec");
127128
cmd.arg("--release");
128129
cmd.env("KERNEL", &self.kernel_bin_path);
129130
cmd.env("KERNEL_MANIFEST", &self.kernel_manifest_path);

0 commit comments

Comments
 (0)