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.
This commit is contained in:
Alex Crichton 2019-09-17 11:23:09 -07:00
parent d8253c166b
commit 008ed188ce

View File

@ -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)
{