]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: Compile with the build compiler
authorAlex Crichton <alex@alexcrichton.com>
Thu, 25 Feb 2016 03:04:35 +0000 (19:04 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 28 Feb 2016 18:50:13 +0000 (10:50 -0800)
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

index d97bc064c984803828be549cb1cec46bd0bc63e1..acbfdca0b6d774e02a459b7034ae66fc25ccf6dc 100644 (file)
@@ -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)));
             }
         }
     }