diff options
| author | bors <bors@rust-lang.org> | 2016-08-28 03:28:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-28 03:28:38 -0700 |
| commit | b17fa8bf012628b00ec156caefbad34b54a87182 (patch) | |
| tree | 660b3ed1722bc8a1721787be9b9095d047203f64 /src | |
| parent | 78a0838756d3df06ba64230600acfbed5ac6d0d7 (diff) | |
| parent | b8ebc1347c0f69c833b4fa908bcc43eb47949efa (diff) | |
| download | rust-b17fa8bf012628b00ec156caefbad34b54a87182.tar.gz rust-b17fa8bf012628b00ec156caefbad34b54a87182.zip | |
Auto merge of #36055 - japaric:rustbuild-no-filecheck, r=alexcrichton
rustbuild: skip filecheck check if codegen tests are disabled to match the behavior of the old Makefile-based build system closes #35752 r? @alexcrichton
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/config.rs | 3 | ||||
| -rw-r--r-- | src/bootstrap/lib.rs | 6 | ||||
| -rw-r--r-- | src/bootstrap/sanity.rs | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index aafbf68d1b7..682a6f74126 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -78,6 +78,7 @@ pub struct Config { pub channel: String, pub musl_root: Option<PathBuf>, pub prefix: Option<String>, + pub codegen_tests: bool, } /// Per-target configuration stored in the global configuration structure. @@ -169,6 +170,7 @@ impl Config { config.rust_codegen_units = 1; config.build = build.to_string(); config.channel = "dev".to_string(); + config.codegen_tests = true; let toml = file.map(|file| { let mut f = t!(File::open(&file)); @@ -322,6 +324,7 @@ impl Config { ("DEBUGINFO_TESTS", self.rust_debuginfo_tests), ("LOCAL_REBUILD", self.local_rebuild), ("NINJA", self.ninja), + ("CODEGEN_TESTS", self.codegen_tests), } match key { diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 9eacb5e3924..9f0efa8289d 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -390,8 +390,10 @@ impl Build { "mir-opt", "mir-opt"); } CheckCodegen { compiler } => { - check::compiletest(self, &compiler, target.target, - "codegen", "codegen"); + if self.config.codegen_tests { + check::compiletest(self, &compiler, target.target, + "codegen", "codegen"); + } } CheckCodegenUnits { compiler } => { check::compiletest(self, &compiler, target.target, diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs index d6ac3ef6c9c..c0d303c0ea9 100644 --- a/src/bootstrap/sanity.rs +++ b/src/bootstrap/sanity.rs @@ -89,7 +89,7 @@ pub fn check(build: &mut Build) { // Externally configured LLVM requires FileCheck to exist let filecheck = build.llvm_filecheck(&build.config.build); - if !filecheck.starts_with(&build.out) && !filecheck.exists() { + if !filecheck.starts_with(&build.out) && !filecheck.exists() && build.config.codegen_tests { panic!("filecheck executable {:?} does not exist", filecheck); } |
