]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Create tar balls of save-analysis-api metadata for the standard libraries as part...
[rust.git] / src / bootstrap / lib.rs
index 912b5864c818bfc25c561b632fe813857c05520a..cd80c4298dc41b594616afcd86b96789bf4f9ec3 100644 (file)
@@ -507,6 +507,10 @@ fn cargo(&self,
                  .env(format!("CFLAGS_{}", target), self.cflags(target).join(" "));
         }
 
+        if self.config.channel == "nightly" && compiler.stage == 2 {
+            cargo.env("RUSTC_SAVE_ANALYSIS", "api".to_string());
+        }
+
         // Environment variables *required* needed throughout the build
         //
         // FIXME: should update code to not require this env var