File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
- use std:: fmt:: { Display , Formatter } ;
1
+ use std:: { env :: consts :: EXE_EXTENSION , fmt:: { Display , Formatter } } ;
2
2
3
3
use crate :: core:: build_steps:: compile:: { Std , Sysroot } ;
4
4
use crate :: core:: build_steps:: tool:: { RustcPerf , Rustdoc } ;
@@ -160,7 +160,10 @@ Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
160
160
}
161
161
162
162
let sysroot = builder. ensure ( Sysroot :: new ( compiler) ) ;
163
- let rustc = sysroot. join ( "bin/rustc" ) ;
163
+ let mut rustc = sysroot. clone ( ) ;
164
+ rustc. push ( "bin" ) ;
165
+ rustc. push ( "rustc" ) ;
166
+ rustc. set_extension ( EXE_EXTENSION ) ;
164
167
165
168
let rustc_perf_dir = builder. build . tempdir ( ) . join ( "rustc-perf" ) ;
166
169
let results_dir = rustc_perf_dir. join ( "results" ) ;
You can’t perform that action at this time.
0 commit comments