]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: Package rust-mingw by default
authorAlex Crichton <alex@alexcrichton.com>
Thu, 15 Dec 2016 18:05:41 +0000 (10:05 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 15 Dec 2016 18:05:41 +0000 (10:05 -0800)
This fixes the `make dist` step on MinGW to package the `rust-mingw` component
by default. This should hopefully be the last step in fixing nightlies.

src/bootstrap/step.rs

index 631e5fa1afd9e94b69c553758289d870a3e22830..f44083370f481f98efd48d9d1c5adffcad3df1a7 100644 (file)
@@ -490,7 +490,12 @@ pub fn build_rules(build: &Build) -> Rules {
          .default(true)
          .run(move |s| dist::std(build, &s.compiler(), s.target));
     rules.dist("dist-mingw", "path/to/nowhere")
-         .run(move |s| dist::mingw(build, s.target));
+         .default(true)
+         .run(move |s| {
+             if s.target.contains("pc-windows-gnu") {
+                 dist::mingw(build, s.target)
+             }
+         });
     rules.dist("dist-src", "src")
          .default(true)
          .host(true)