Skip to content
Permalink
Browse files

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.
  • Loading branch information...
alexcrichton committed Sep 17, 2019
1 parent d8253c1 commit 008ed188ce48bfc555e91212730fc49208611caa
Showing with 1 addition and 2 deletions.
  1. +1 −2 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)
{

0 comments on commit 008ed18

Please sign in to comment.
You can’t perform that action at this time.