diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-06-14 19:32:32 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-06-14 19:32:32 -0400 |
| commit | 2c521aed7cf6502f35c448c5531cc007fd32af8b (patch) | |
| tree | deebf2ec2f8731f0532485a28e82b18c03f7d03f | |
| parent | ff12b110e3a56756f6a62d28f93ab7f11226496d (diff) | |
| download | rust-2c521aed7cf6502f35c448c5531cc007fd32af8b.tar.gz rust-2c521aed7cf6502f35c448c5531cc007fd32af8b.zip | |
Pass RUSTC_FORCE_INCREMENTAL to auxiliary tests
This won't enable incremental if -Cincremental is not already passed, but is seemingly necessary in the presence of -Zincremental-verify-ich which does not check for incremental being enabled before accessing incremental data structures, leading to an ICE.
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 8561311c34f..5125acb9b66 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1784,7 +1784,9 @@ impl<'test> TestCx<'test> { /// Returns whether or not it is a dylib. fn build_auxiliary(&self, source_path: &str, aux_dir: &Path) -> bool { let aux_testpaths = self.compute_aux_test_paths(source_path); - let aux_props = self.props.from_aux_file(&aux_testpaths.file, self.revision, self.config); + let mut aux_props = + self.props.from_aux_file(&aux_testpaths.file, self.revision, self.config); + aux_props.rustc_env.push((String::from("RUSTC_FORCE_INCREMENTAL"), String::from("1"))); let aux_output = TargetLocation::ThisDirectory(self.aux_output_dir_name()); let aux_cx = TestCx { config: self.config, |
