rustbuild: Make save-analysis an option

This commit is contained in:
Tatsuyuki Ishi 2017-03-09 17:49:37 +09:00
parent 8c72b7651f
commit e31e264c55
6 changed files with 11 additions and 10 deletions

View file

@ -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());
}