about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2016-09-23 01:25:51 +0000
committerBrian Anderson <banderson@mozilla.com>2016-09-30 14:02:56 -0700
commit834bbab11b5b9535cbbec8b02149157fff764bf1 (patch)
tree50099634ac6dfd99e4f932de0b3885930069a4da
parent096670ca41a2aada11722acf4d0ab35a422448f6 (diff)
rustbuild: Only build 'dist' when building the host
Doing this step for the target results in the build system
trying to build rustc for asmjs, which doesn't work.
-rw-r--r--src/bootstrap/step.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs
index 4b5a26d205a..8a96cd1b4d2 100644
--- a/src/bootstrap/step.rs
+++ b/src/bootstrap/step.rs
@@ -418,7 +418,6 @@ impl<'a> Step<'a> {
                     self.check_crate_std(compiler),
                     self.check_crate_test(compiler),
                     self.check_debuginfo(compiler),
-                    self.dist(stage),
                 ];
 
                 // If we're testing the build triple, then we know we can
@@ -463,6 +462,9 @@ impl<'a> Step<'a> {
                         // misc
                         self.check_linkcheck(stage),
                         self.check_tidy(stage),
+
+                        // can we make the distributables?
+                        self.dist(stage),
                     ]);
                 }
                 return base