From 5abcc78ff8baf881a8e87c3fe6f188333bf0eda1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 24 Feb 2016 19:04:35 -0800 Subject: [PATCH] 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) --- src/bootstrap/build/step.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); } } }