Skip to content

Commit 3fee79b

Browse files
authored
Merge pull request #522 from rust-osdev/fix-stage-2-build-take-2
Use legacy symbol mangling for BIOS stage 2
2 parents 53c5cba + d91b8aa commit 3fee79b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ fn build_bios_stage_2() -> PathBuf {
215215
cmd.env_remove("RUSTFLAGS");
216216
cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");
217217
cmd.env_remove("RUSTC_WORKSPACE_WRAPPER"); // used by clippy
218+
cmd.env(
219+
"RUSTFLAGS",
220+
"-Csymbol-mangling-version=legacy -Zunstable-options",
221+
);
218222
let status = cmd
219223
.status()
220224
.expect("failed to run cargo install for bios second stage");

0 commit comments

Comments
 (0)