Skip to content

Commit 5abcc78

Browse files
committed
rustbuild: Compile with the build compiler
This switches the defaults to ensure that everything is built with the build compiler rather than the host compiler itself (which we're not guaranteed to be able to run)
1 parent ed3d46d commit 5abcc78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/build/step.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ fn top_level(build: &Build) -> Vec<Step> {
9393
continue
9494
}
9595
let host = t.target(host);
96-
targets.push(host.librustc(stage, host.compiler(stage)));
96+
targets.push(host.librustc(stage, t.compiler(stage)));
9797
for target in build.config.target.iter() {
9898
if !build.flags.target.contains(target) {
9999
continue
100100
}
101101
targets.push(host.target(target)
102-
.libstd(stage, host.compiler(stage)));
102+
.libstd(stage, t.compiler(stage)));
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)