Skip to content

Commit 1b145d4

Browse files
committed
[WIP]
1 parent 1163878 commit 1b145d4

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

src/bootstrap/builder.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -831,15 +831,8 @@ impl<'a> Builder<'a> {
831831
}
832832
}
833833

834-
let stage = if compiler.stage == 0 && self.local_rebuild {
835-
// Assume the local-rebuild rustc already has stage1 features.
836-
1
837-
} else {
838-
compiler.stage
839-
};
840-
841834
let mut rustflags = Rustflags::new(&target);
842-
if stage != 0 {
835+
if compiler.stage != 0 {
843836
if let Ok(s) = env::var("CARGOFLAGS_NOT_BOOTSTRAP") {
844837
cargo.args(s.split_whitespace());
845838
}
@@ -852,6 +845,13 @@ impl<'a> Builder<'a> {
852845
rustflags.arg("--cfg=bootstrap");
853846
}
854847

848+
let stage = if compiler.stage == 0 && self.local_rebuild {
849+
// Assume the local-rebuild rustc already has stage1 features.
850+
1
851+
} else {
852+
compiler.stage
853+
};
854+
855855
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
856856
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
857857
// #71458.

src/librustc_codegen_cranelift

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../cg_clif

src/rustc/rustc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![feature(rustc_private)]
2+
13
extern crate libc;
24

35
fn main() {

0 commit comments

Comments
 (0)