mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-24 06:18:30 +03:00
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:
@@ -1134,8 +1134,7 @@ pub fn cargo(
|
||||
}
|
||||
}
|
||||
|
||||
if (cmd == "build" || cmd == "rustc")
|
||||
&& mode == Mode::Std
|
||||
if mode == Mode::Std
|
||||
&& self.config.extended
|
||||
&& compiler.is_final_stage(self)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user