Skip to content

Commit 008ed18

Browse files
committed
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.
1 parent d8253c1 commit 008ed18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap/builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,7 @@ impl<'a> Builder<'a> {
11341134
}
11351135
}
11361136

1137-
if (cmd == "build" || cmd == "rustc")
1138-
&& mode == Mode::Std
1137+
if mode == Mode::Std
11391138
&& self.config.extended
11401139
&& compiler.is_final_stage(self)
11411140
{

0 commit comments

Comments
 (0)