about summary refs log tree commit diff
path: root/src/bootstrap/dist.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2021-07-19 15:26:47 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2021-07-19 16:16:14 +0200
commitf4c6d8f77c23aef7fc7a2128e99f8801b8176a09 (patch)
treee1bc27c534cb4d5996f4b8d56c23ad50efdb31bf /src/bootstrap/dist.rs
parent82faa9caffd766b626c216f895f083f874f2440f (diff)
downloadrust-f4c6d8f77c23aef7fc7a2128e99f8801b8176a09.tar.gz
rust-f4c6d8f77c23aef7fc7a2128e99f8801b8176a09.zip
refactor gating of mingw
Diffstat (limited to 'src/bootstrap/dist.rs')
-rw-r--r--src/bootstrap/dist.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 3b4940e59f4..9776b097bec 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -1386,6 +1386,10 @@ impl Step for Extended {
             tarballs.push(builder.ensure(Docs { host: target }));
         }
 
+        if target.contains("windows-gnu") {
+            tarballs.push(builder.ensure(Mingw { host: target }).expect("missing mingw"));
+        }
+
         if builder.config.profiler_enabled(target)
             || should_build_extended_tool(builder, "rust-demangler")
         {
@@ -1404,8 +1408,6 @@ impl Step for Extended {
         add_tool!("miri" => Miri { compiler, target });
         add_tool!("analysis" => Analysis { compiler, target });
 
-        let mingw_installer = builder.ensure(Mingw { host: target });
-
         let etc = builder.src.join("src/etc/installer");
 
         // Avoid producing tarballs during a dry run.
@@ -1413,10 +1415,6 @@ impl Step for Extended {
             return;
         }
 
-        if target.contains("pc-windows-gnu") {
-            tarballs.push(mingw_installer.unwrap());
-        }
-
         let tarball = Tarball::new(builder, "rust", &target.triple);
         let generated = tarball.combine(&tarballs);