Skip to content

Commit

Permalink
compiletest: Clear RUSTFLAGS env-var for run-make tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Jan 30, 2017
1 parent 5f118b9 commit d292e12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Expand Up @@ -2175,6 +2175,10 @@ actual:\n\
.env("LLVM_COMPONENTS", &self.config.llvm_components)
.env("LLVM_CXXFLAGS", &self.config.llvm_cxxflags);

// We don't want RUSTFLAGS set from the outside to interfere with
// compiler flags set in the test cases:
cmd.env_remove("RUSTFLAGS");

if self.config.target.contains("msvc") {
// We need to pass a path to `lib.exe`, so assume that `cc` is `cl.exe`
// and that `lib.exe` lives next to it.
Expand Down

0 comments on commit d292e12

Please sign in to comment.