about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2021-07-19 12:25:29 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2021-07-19 16:14:59 +0200
commit8f3844ff07449ebd045ba8fd9adcac62e957cfe8 (patch)
treec20057e55ff28bdb1a17586ffbcf0dd2896fec4e
parent8df945c4717ffaf923b57bf30c473df6fc98bc85 (diff)
downloadrust-8f3844ff07449ebd045ba8fd9adcac62e957cfe8.tar.gz
rust-8f3844ff07449ebd045ba8fd9adcac62e957cfe8.zip
refactor adding rustc and std into extended builds
-rw-r--r--src/bootstrap/dist.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 92853378e58..1d7dbeddee9 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -1345,7 +1345,15 @@ impl Step for Extended {
 
         builder.info(&format!("Dist extended stage{} ({})", compiler.stage, target));
 
-        let rustc_installer = builder.ensure(Rustc { compiler: builder.compiler(stage, target) });
+        let mut tarballs = Vec::new();
+
+        // When rust-std package split from rustc, we needed to ensure that during
+        // upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
+        // the std files during uninstall. To do this ensure that rustc comes
+        // before rust-std in the list below.
+        tarballs.push(builder.ensure(Rustc { compiler: builder.compiler(stage, target) }));
+        tarballs.push(builder.ensure(Std { compiler, target }).expect("missing std"));
+
         let cargo_installer = builder.ensure(Cargo { compiler, target });
         let rustfmt_installer = builder.ensure(Rustfmt { compiler, target });
         let rust_demangler_installer = builder.ensure(RustDemangler { compiler, target });
@@ -1358,7 +1366,6 @@ impl Step for Extended {
         let analysis_installer = builder.ensure(Analysis { compiler, target });
 
         let docs_installer = builder.ensure(Docs { host: target });
-        let std_installer = builder.ensure(Std { compiler, target });
 
         let etc = builder.src.join("src/etc/installer");
 
@@ -1367,12 +1374,6 @@ impl Step for Extended {
             return;
         }
 
-        // When rust-std package split from rustc, we needed to ensure that during
-        // upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
-        // the std files during uninstall. To do this ensure that rustc comes
-        // before rust-std in the list below.
-        let mut tarballs = Vec::new();
-        tarballs.push(rustc_installer);
         tarballs.push(cargo_installer);
         tarballs.push(clippy_installer);
         tarballs.extend(rust_demangler_installer.clone());
@@ -1384,7 +1385,6 @@ impl Step for Extended {
         if let Some(analysis_installer) = analysis_installer {
             tarballs.push(analysis_installer);
         }
-        tarballs.push(std_installer.expect("missing std"));
         if let Some(docs_installer) = docs_installer {
             tarballs.push(docs_installer);
         }