Skip to content

Commit 78fdbfc

Browse files
committed
rustbuild: Only -Zsave-analysis for libstd
Don't pass the flag when we're compiling the compiler or other related tools
1 parent fd95db2 commit 78fdbfc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,9 @@ impl Build {
482482
}
483483
}
484484

485-
if self.config.extended && compiler.is_final_stage(self) {
485+
if mode == Mode::Libstd &&
486+
self.config.extended &&
487+
compiler.is_final_stage(self) {
486488
cargo.env("RUSTC_SAVE_ANALYSIS", "api".to_string());
487489
}
488490

0 commit comments

Comments
 (0)