about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-04-18 11:02:21 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2017-04-21 15:48:35 +0300
commit89bd3f39cadbbe0b361303ddbda2796ea7f39bb9 (patch)
treeb809a22a401c99d878918570ee1cc2b73ebca1cb /src/bootstrap
parent0adfd810f8aa16ce9e63f6feae182db0ba4833ef (diff)
downloadrust-89bd3f39cadbbe0b361303ddbda2796ea7f39bb9.tar.gz
rust-89bd3f39cadbbe0b361303ddbda2796ea7f39bb9.zip
Update #[no_core] users with the "freeze" lang item.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/compile.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index bddd570a13d..cd87b27d4f1 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -151,6 +151,7 @@ pub fn build_startup_objects(build: &Build, for_compiler: &Compiler, target: &st
         if !up_to_date(src_file, dst_file) {
             let mut cmd = Command::new(&compiler_path);
             build.run(cmd.env("RUSTC_BOOTSTRAP", "1")
+                        .arg("--cfg").arg(format!("stage{}", compiler.stage))
                         .arg("--target").arg(target)
                         .arg("--emit=obj")
                         .arg("--out-dir").arg(dst_dir)