From d292e1229f1e7cc882e550d3ecc0e152720a0ab5 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Mon, 30 Jan 2017 12:28:31 -0500 Subject: compiletest: Clear RUSTFLAGS env-var for run-make tests. --- src/tools/compiletest/src/runtest.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tools/compiletest') diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 05d6e21e9aa..86fa5e70c9c 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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. -- cgit 1.4.1-3-g733a5