Skip to content

Commit b14b4e3

Browse files
committed
Remove some env variables when building boot sector
Clippy sets some of these environment variables, which causes size problems.
1 parent 5310e4b commit b14b4e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ fn build_bios_boot_sector(out_dir: &Path) -> PathBuf {
7373
cmd.arg("-Zbuild-std=core")
7474
.arg("-Zbuild-std-features=compiler-builtins-mem");
7575
cmd.arg("--root").arg(out_dir);
76+
cmd.env_remove("RUSTFLAGS");
77+
cmd.env_remove("RUSTC_WORKSPACE_WRAPPER"); // used by clippy
7678
let status = cmd
7779
.status()
7880
.expect("failed to run cargo install for bios boot sector");

0 commit comments

Comments
 (0)