diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-05-22 03:40:01 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-05-22 07:37:57 +0200 |
| commit | e44d804f7d295ab87ef16f0d03e5cf60295c322f (patch) | |
| tree | bee74ea53fd7afc1f54b2ab251063de6c20c9ba2 /src/bootstrap/lib.rs | |
| parent | 56e541ddf1ee9a4e9d65a3cf6f952c31c3edf5ef (diff) | |
| download | rust-e44d804f7d295ab87ef16f0d03e5cf60295c322f.tar.gz rust-e44d804f7d295ab87ef16f0d03e5cf60295c322f.zip | |
Fix FileCheck finding
Diffstat (limited to 'src/bootstrap/lib.rs')
| -rw-r--r-- | src/bootstrap/lib.rs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index e53fef06786..f64161fb027 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -592,12 +592,20 @@ impl Build { Path::new(llvm_bindir.trim()).join(exe("FileCheck", &*target)) } else { let base = self.llvm_out(self.config.build).join("build"); - let exe = exe("FileCheck", &*target); - if !self.config.ninja && self.config.build.contains("msvc") { - base.join("Release/bin").join(exe) + let base = if !self.config.ninja && self.config.build.contains("msvc") { + if self.config.llvm_optimize { + if self.config.llvm_release_debuginfo { + base.join("RelWithDebInfo") + } else { + base.join("Release") + } + } else { + base.join("Debug") + } } else { - base.join("bin").join(exe) - } + base + }; + base.join("bin").join(exe("FileCheck", &*target)) } } |
