diff --git a/src/bootstrap/build/step.rs b/src/bootstrap/build/step.rs index d97bc064c98..acbfdca0b6d 100644 --- a/src/bootstrap/build/step.rs +++ b/src/bootstrap/build/step.rs @@ -93,13 +93,13 @@ fn top_level(build: &Build) -> Vec { 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))); } } }