diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2019-09-17 11:23:09 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2019-09-23 09:34:44 -0700 |
| commit | 008ed188ce48bfc555e91212730fc49208611caa (patch) | |
| tree | 3f2746e3ff608e89359cdb8e9c7f60e23144b139 /src/bootstrap | |
| parent | d8253c166b4562782b157a0feca43667d6cb05c6 (diff) | |
| download | rust-008ed188ce48bfc555e91212730fc49208611caa.tar.gz rust-008ed188ce48bfc555e91212730fc49208611caa.zip | |
rustbuild: Pass `-Zsave-analysis` during tests
This is needed to ensure that the crates during a normal build are shared with the crates during testing, otherwise they'll end up hasing differently and we'll recompile crates like `core` during tests.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/builder.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index aa433690436..5d586f0c461 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1134,8 +1134,7 @@ impl<'a> Builder<'a> { } } - if (cmd == "build" || cmd == "rustc") - && mode == Mode::Std + if mode == Mode::Std && self.config.extended && compiler.is_final_stage(self) { |
