File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -831,15 +831,8 @@ impl<'a> Builder<'a> {
831
831
}
832
832
}
833
833
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
-
841
834
let mut rustflags = Rustflags :: new ( & target) ;
842
- if stage != 0 {
835
+ if compiler . stage != 0 {
843
836
if let Ok ( s) = env:: var ( "CARGOFLAGS_NOT_BOOTSTRAP" ) {
844
837
cargo. args ( s. split_whitespace ( ) ) ;
845
838
}
@@ -852,6 +845,13 @@ impl<'a> Builder<'a> {
852
845
rustflags. arg ( "--cfg=bootstrap" ) ;
853
846
}
854
847
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
+
855
855
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
856
856
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
857
857
// #71458.
Original file line number Diff line number Diff line change
1
+ ../../cg_clif
Original file line number Diff line number Diff line change
1
+ #![ feature( rustc_private) ]
2
+
1
3
extern crate libc;
2
4
3
5
fn main ( ) {
You can’t perform that action at this time.
0 commit comments