about summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-03-15 13:50:13 +0000
committerbors <bors@rust-lang.org>2017-03-15 13:50:13 +0000
commit0aeb9c12979e6da753701a798d04105b6b1a8c28 (patch)
tree847107cd73b51517d22d90ebdfedadc701f2a291 /src/bootstrap/lib.rs
parent11a33760ecfd925be089a28c54f12a5490fd9a2f (diff)
parentd4040c3a3fa9cc416f2f997b52946d6cd6b17e48 (diff)
downloadrust-0aeb9c12979e6da753701a798d04105b6b1a8c28.tar.gz
rust-0aeb9c12979e6da753701a798d04105b6b1a8c28.zip
Auto merge of #40383 - ishitatsuyuki:easy-dist-analysis, r=alexcrichton
rustbuild: Make save-analysis an option

This makes save-analysis an option independent from the release channel.

The CI build scripts have been modified to enable the flag.

*Merge with caution.* I haven't tested this, and this can cause nightly breakage.
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index 72aec15e532..2d2be531e62 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -524,7 +524,7 @@ impl Build {
                  .env(format!("CFLAGS_{}", target), self.cflags(target).join(" "));
         }
 
-        if self.config.channel == "nightly" && compiler.is_final_stage(self) {
+        if self.config.rust_save_analysis && compiler.is_final_stage(self) {
             cargo.env("RUSTC_SAVE_ANALYSIS", "api".to_string());
         }