Skip to content

Commit b11f13b

Browse files
committed
Remove RUSTC_WRAPPER env
1 parent 8ee9f2f commit b11f13b

File tree

1 file changed

+5
-0
lines changed
  • crates/spirv-builder/src

1 file changed

+5
-0
lines changed

crates/spirv-builder/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,11 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
10381038
// previously set.
10391039
cargo.env_remove("RUSTC");
10401040

1041+
// NOTE(tuguzT) Used by Cargo to call executables of Clippy, Miri
1042+
// (and maybe other Cargo subcommands) instead of `rustc`
1043+
// which could affect its functionality and break the build process.
1044+
cargo.env_remove("RUSTC_WRAPPER");
1045+
10411046
// NOTE(eddyb) this used to be just `RUSTFLAGS` but at some point Cargo
10421047
// added a separate environment variable using `\x1f` instead of spaces,
10431048
// which allows us to have spaces within individual `rustc` flags.

0 commit comments

Comments
 (0)