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.
This commit is contained in:
Brian Anderson 2016-09-23 01:25:51 +00:00
parent 096670ca41
commit 834bbab11b

View File

@ -418,7 +418,6 @@ pub fn deps(&self, build: &'a Build) -> Vec<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 @@ pub fn deps(&self, build: &'a Build) -> Vec<Step<'a>> {
// misc
self.check_linkcheck(stage),
self.check_tidy(stage),
// can we make the distributables?
self.dist(stage),
]);
}
return base