diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-03-23 07:46:20 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-03-23 11:37:42 -0700 |
| commit | 0e6cd8b61a392cd80d575eaef86d12d9c3f9e2dc (patch) | |
| tree | 32db4f9e696b8c5ba9d249bf05b4af6c40974e2d /src/tools | |
| parent | 3ebe12eb3ed09e49ce136d098485e1b4538fbf03 (diff) | |
| download | rust-0e6cd8b61a392cd80d575eaef86d12d9c3f9e2dc.tar.gz rust-0e6cd8b61a392cd80d575eaef86d12d9c3f9e2dc.zip | |
Test fixes
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 93b1b1f08e6..e826c5366a8 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -2426,7 +2426,7 @@ impl<'test> TestCx<'test> { // compiler flags set in the test cases: cmd.env_remove("RUSTFLAGS"); - if self.config.target.contains("msvc") { + if self.config.target.contains("msvc") && self.config.cc != "" { // We need to pass a path to `lib.exe`, so assume that `cc` is `cl.exe` // and that `lib.exe` lives next to it. let lib = Path::new(&self.config.cc).parent().unwrap().join("lib.exe"); |
