@@ -27,7 +27,6 @@ fn main() {
2727 let args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
2828 let arg = |name| args. windows ( 2 ) . find ( |args| args[ 0 ] == name) . and_then ( |args| args[ 1 ] . to_str ( ) ) ;
2929
30- let stage = parse_rustc_stage ( ) ;
3130 let verbose = parse_rustc_verbose ( ) ;
3231
3332 // Detect whether or not we're a build script depending on whether --target
@@ -108,27 +107,13 @@ fn main() {
108107 cmd. arg ( "-Ztls-model=initial-exec" ) ;
109108 }
110109 } 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-
114110 // Find any host flags that were passed by bootstrap.
115111 // The flags are stored in a RUSTC_HOST_FLAGS variable, separated by spaces.
116112 if let Ok ( flags) = std:: env:: var ( "RUSTC_HOST_FLAGS" ) {
117113 for flag in flags. split ( ' ' ) {
118114 cmd. arg ( flag) ;
119115 }
120116 }
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)" ) ;
132117 }
133118
134119 if let Ok ( map) = env:: var ( "RUSTC_DEBUGINFO_MAP" ) {
0 commit comments