File tree 1 file changed +5
-5
lines changed
src/bootstrap/src/core/build_steps 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -124,19 +124,19 @@ impl Step for Miri {
124
124
std:: process:: exit ( 1 ) ;
125
125
}
126
126
127
- // This compiler runs on the host, we'll just use it for the target.
128
- let target_compiler = builder. compiler ( stage, host) ;
129
- let host_compiler = tool:: get_tool_rustc_compiler ( builder, target_compiler) ;
127
+ let compiler = builder. compiler ( stage, target) ;
128
+ let miri_build = builder. ensure ( tool:: Miri { compiler, target } ) ;
130
129
131
130
// Get a target sysroot for Miri.
132
- let miri_sysroot = test:: Miri :: build_miri_sysroot ( builder, target_compiler, target) ;
131
+ let miri_sysroot =
132
+ test:: Miri :: build_miri_sysroot ( builder, miri_build. target_compiler , target) ;
133
133
134
134
// # Run miri.
135
135
// Running it via `cargo run` as that figures out the right dylib path.
136
136
// add_rustc_lib_path does not add the path that contains librustc_driver-<...>.so.
137
137
let mut miri = tool:: prepare_tool_cargo (
138
138
builder,
139
- host_compiler ,
139
+ miri_build . build_compiler ,
140
140
Mode :: ToolRustc ,
141
141
host,
142
142
Kind :: Run ,
You can’t perform that action at this time.
0 commit comments