@@ -27,7 +27,6 @@ fn main() {
27
27
let args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
28
28
let arg = |name| args. windows ( 2 ) . find ( |args| args[ 0 ] == name) . and_then ( |args| args[ 1 ] . to_str ( ) ) ;
29
29
30
- let stage = parse_rustc_stage ( ) ;
31
30
let verbose = parse_rustc_verbose ( ) ;
32
31
33
32
// Detect whether or not we're a build script depending on whether --target
@@ -108,27 +107,13 @@ fn main() {
108
107
cmd. arg ( "-Ztls-model=initial-exec" ) ;
109
108
}
110
109
} else {
111
- // FIXME(rust-lang/cargo#5754) we shouldn't be using special env vars
112
- // here, but rather Cargo should know what flags to pass rustc itself.
113
-
114
110
// Find any host flags that were passed by bootstrap.
115
111
// The flags are stored in a RUSTC_HOST_FLAGS variable, separated by spaces.
116
112
if let Ok ( flags) = std:: env:: var ( "RUSTC_HOST_FLAGS" ) {
117
113
for flag in flags. split ( ' ' ) {
118
114
cmd. arg ( flag) ;
119
115
}
120
116
}
121
-
122
- // Cargo doesn't pass RUSTFLAGS to proc_macros:
123
- // https://github.com/rust-lang/cargo/issues/4423
124
- // Thus, if we are on stage 0, we explicitly set `--cfg=bootstrap`.
125
- // We also declare that the flag is expected, which we need to do to not
126
- // get warnings about it being unexpected.
127
- if stage == "0" {
128
- cmd. arg ( "--cfg=bootstrap" ) ;
129
- }
130
- cmd. arg ( "-Zunstable-options" ) ;
131
- cmd. arg ( "--check-cfg=values(bootstrap)" ) ;
132
117
}
133
118
134
119
if let Ok ( map) = env:: var ( "RUSTC_DEBUGINFO_MAP" ) {
0 commit comments