From 008ed188ce48bfc555e91212730fc49208611caa Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 17 Sep 2019 11:23:09 -0700 Subject: 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. --- src/bootstrap/builder.rs | 3 +-- 1 file changed, 1 insertion(+), 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) { -- cgit 1.4.1-3-g733a5