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)
This commit is contained in:
parent
ed3d46d278
commit
5abcc78ff8
@ -93,13 +93,13 @@ fn top_level(build: &Build) -> Vec<Step> {
|
||||
continue
|
||||
}
|
||||
let host = t.target(host);
|
||||
targets.push(host.librustc(stage, host.compiler(stage)));
|
||||
targets.push(host.librustc(stage, t.compiler(stage)));
|
||||
for target in build.config.target.iter() {
|
||||
if !build.flags.target.contains(target) {
|
||||
continue
|
||||
}
|
||||
targets.push(host.target(target)
|
||||
.libstd(stage, host.compiler(stage)));
|
||||
.libstd(stage, t.compiler(stage)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user