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:
parent
fd95db25b3
commit
78fdbfc400
1 changed files with 3 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue