Skip to content

Commit 1a5ad3e

Browse files
authored
Unset RUSTFLAGS when building sysroot (#5)
1 parent c001455 commit 1a5ad3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sysroot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ fn build_crate(
7676

7777
let mut cmd = Command::new("cargo");
7878
cmd.env_remove("CARGO_TARGET_DIR");
79+
cmd.env_remove("RUSTFLAGS");
7980
cmd.env("__CARGO_DEFAULT_LIB_METADATA", "XARGO");
8081

8182
// As of rust-lang/cargo#4788 Cargo invokes rustc with a changed "current directory" so

0 commit comments

Comments
 (0)