Skip to content

Commit a63b0c2

Browse files
committed
Add -Zjson-target-spec
1 parent 91aaca4 commit a63b0c2

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

build.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ fn build_uefi_bootloader() -> PathBuf {
8181
cmd.arg("--locked");
8282
cmd.arg("--target").arg("x86_64-unknown-uefi");
8383
cmd.arg("-Zbuild-std=core")
84-
.arg("-Zbuild-std-features=compiler-builtins-mem");
84+
.arg("-Zbuild-std-features=compiler-builtins-mem")
85+
.arg("-Zjson-target-spec");
8586
cmd.arg("--root").arg(&out_dir);
8687
cmd.arg("-vv");
8788
cmd.env_remove("RUSTFLAGS");
@@ -145,7 +146,8 @@ fn build_bios_boot_sector() -> PathBuf {
145146
.arg("-Zjson-target-spec");
146147
cmd.arg("--profile").arg("stage-1");
147148
cmd.arg("-Zbuild-std=core")
148-
.arg("-Zbuild-std-features=compiler-builtins-mem");
149+
.arg("-Zbuild-std-features=compiler-builtins-mem")
150+
.arg("-Zjson-target-spec");
149151
cmd.arg("--root").arg(&out_dir);
150152
cmd.env_remove("RUSTFLAGS");
151153
cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");
@@ -216,7 +218,8 @@ fn build_bios_stage_2() -> PathBuf {
216218
.arg("-Zjson-target-spec");
217219
cmd.arg("--profile").arg("stage-2");
218220
cmd.arg("-Zbuild-std=core")
219-
.arg("-Zbuild-std-features=compiler-builtins-mem");
221+
.arg("-Zbuild-std-features=compiler-builtins-mem")
222+
.arg("-Zjson-target-spec");
220223
cmd.arg("--root").arg(&out_dir);
221224
cmd.env_remove("RUSTFLAGS");
222225
cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");
@@ -281,7 +284,8 @@ fn build_bios_stage_3() -> PathBuf {
281284
.arg("-Zjson-target-spec");
282285
cmd.arg("--profile").arg("stage-3");
283286
cmd.arg("-Zbuild-std=core")
284-
.arg("-Zbuild-std-features=compiler-builtins-mem");
287+
.arg("-Zbuild-std-features=compiler-builtins-mem")
288+
.arg("-Zjson-target-spec");
285289
cmd.arg("--root").arg(&out_dir);
286290
cmd.env_remove("RUSTFLAGS");
287291
cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");
@@ -346,7 +350,8 @@ fn build_bios_stage_4() -> PathBuf {
346350
.arg("-Zjson-target-spec");
347351
cmd.arg("--profile").arg("stage-4");
348352
cmd.arg("-Zbuild-std=core")
349-
.arg("-Zbuild-std-features=compiler-builtins-mem");
353+
.arg("-Zbuild-std-features=compiler-builtins-mem")
354+
.arg("-Zjson-target-spec");
350355
cmd.arg("--root").arg(&out_dir);
351356
cmd.env_remove("RUSTFLAGS");
352357
cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");

0 commit comments

Comments
 (0)