File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,10 @@ impl Step for Miri {
133
133
}
134
134
135
135
// This compiler runs on the host, we'll just use it for the target.
136
- let target_compiler = builder. compiler ( stage, host) ;
137
- let host_compiler = tool:: get_tool_rustc_compiler ( builder, target_compiler) ;
136
+ let target_compiler = builder. compiler ( stage, target) ;
137
+ let miri_build = builder. ensure ( tool:: Miri { compiler : target_compiler, target } ) ;
138
+ // Rustc tools are off by one stage, so use the build compiler to run miri.
139
+ let host_compiler = miri_build. build_compiler ;
138
140
139
141
// Get a target sysroot for Miri.
140
142
let miri_sysroot = test:: Miri :: build_miri_sysroot ( builder, target_compiler, target) ;
You can’t perform that action at this time.
0 commit comments