diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-07-05 13:51:34 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-07-05 13:51:34 -0700 |
| commit | 78fdbfc4008b52bcce201fd589ed84d2abb0419d (patch) | |
| tree | 1d9524e37c11cabd8ab20dc9aedc5cb19efba60d /src/bootstrap/lib.rs | |
| parent | fd95db25b367d5d61ee9bc86b928c529747b3622 (diff) | |
| download | rust-78fdbfc4008b52bcce201fd589ed84d2abb0419d.tar.gz rust-78fdbfc4008b52bcce201fd589ed84d2abb0419d.zip | |
rustbuild: Only -Zsave-analysis for libstd
Don't pass the flag when we're compiling the compiler or other related tools
Diffstat (limited to 'src/bootstrap/lib.rs')
| -rw-r--r-- | src/bootstrap/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 69b0c4a2756..5a3785b1ed6 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -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()); } |
