Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created March 16, 2016 00:16
Show Gist options
  • Save alexcrichton/6e26ea5897790d733466 to your computer and use it in GitHub Desktop.
Save alexcrichton/6e26ea5897790d733466 to your computer and use it in GitHub Desktop.
diff --git a/src/bootstrap/build/step.rs b/src/bootstrap/build/step.rs
index a29524a..4376ed3 100644
--- a/src/bootstrap/build/step.rs
+++ b/src/bootstrap/build/step.rs
@@ -312,16 +312,19 @@ impl<'a> Step<'a> {
Source::Dist { stage } => {
let mut base = Vec::new();
- base.push(self.dist_docs(stage));
- base.push(self.dist_rustc(stage));
-
- if self.target.contains("windows-gnu") {
- base.push(self.dist_mingw(()));
- }
-
- let compiler = self.compiler(stage);
- for target in build.config.target.iter() {
- base.push(self.target(target).dist_std(compiler));
+ for host in build.config.host.iter() {
+ let me = self.target(host);
+ base.push(me.dist_docs(stage));
+ base.push(me.dist_rustc(stage));
+
+ if me.target.contains("windows-gnu") {
+ base.push(me.dist_mingw(()));
+ }
+
+ let compiler = self.compiler(stage);
+ for target in build.config.target.iter() {
+ base.push(self.target(target).dist_std(compiler));
+ }
}
return base
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment