Skip to content

Commit 834bbab

Browse files
committed
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.
1 parent 096670c commit 834bbab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/step.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ impl<'a> Step<'a> {
418418
self.check_crate_std(compiler),
419419
self.check_crate_test(compiler),
420420
self.check_debuginfo(compiler),
421-
self.dist(stage),
422421
];
423422

424423
// If we're testing the build triple, then we know we can
@@ -463,6 +462,9 @@ impl<'a> Step<'a> {
463462
// misc
464463
self.check_linkcheck(stage),
465464
self.check_tidy(stage),
465+
466+
// can we make the distributables?
467+
self.dist(stage),
466468
]);
467469
}
468470
return base

0 commit comments

Comments
 (0)