File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -251,10 +251,15 @@ fn prepare_compiler_for_check(
251
251
match mode {
252
252
Mode :: ToolBootstrap => builder. compiler ( 0 , host) ,
253
253
Mode :: ToolStd => {
254
- // A small number of tools rely on in-tree standard
255
- // library crates (e.g. compiletest needs libtest).
254
+ // These tools require the local standard library to be checked
256
255
let build_compiler = builder. compiler ( builder. top_stage , host) ;
256
+
257
+ // We need to build the host stdlib to check the tool itself.
258
+ // We need to build the target stdlib so that the tool can link to it.
257
259
builder. std ( build_compiler, host) ;
260
+ // We could only check this library in theory, but `check::Std` doesn't copy rmetas
261
+ // into `build_compiler`'s sysroot to avoid clashes with `.rlibs`, so we build it
262
+ // instead.
258
263
builder. std ( build_compiler, target) ;
259
264
build_compiler
260
265
}
You can’t perform that action at this time.
0 commit comments