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:
parent
d8253c166b
commit
008ed188ce
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user