rustbuild: Only -Zsave-analysis for libstd

Don't pass the flag when we're compiling the compiler or other related tools
This commit is contained in:
Alex Crichton
2017-07-05 13:51:34 -07:00
parent fd95db25b3
commit 78fdbfc400

View File

@@ -482,7 +482,9 @@ impl Build {
} }
} }
if self.config.extended && compiler.is_final_stage(self) { if mode == Mode::Libstd &&
self.config.extended &&
compiler.is_final_stage(self) {
cargo.env("RUSTC_SAVE_ANALYSIS", "api".to_string()); cargo.env("RUSTC_SAVE_ANALYSIS", "api".to_string());
} }