about summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-07-05 13:51:34 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-07-05 13:51:34 -0700
commit78fdbfc4008b52bcce201fd589ed84d2abb0419d (patch)
tree1d9524e37c11cabd8ab20dc9aedc5cb19efba60d /src/bootstrap/lib.rs
parentfd95db25b367d5d61ee9bc86b928c529747b3622 (diff)
downloadrust-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.rs4
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());
         }