Skip to content

Commit 8e87112

Browse files
committed
Do not ever cross-check bootstrap tools
1 parent 49cc81d commit 8e87112

File tree

1 file changed

+7
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+7
-0
lines changed

src/bootstrap/src/core/build_steps/check.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,13 @@ macro_rules! tool_check_step {
502502
fn make_run(run: RunConfig<'_>) {
503503
let target = run.target;
504504
let build_compiler = prepare_compiler_for_check(run.builder, target, $mode);
505+
506+
// It doesn't make sense to cross-check bootstrap tools
507+
let target = match $mode {
508+
Mode::ToolBootstrap => run.builder.host_target,
509+
_ => target,
510+
};
511+
505512
run.builder.ensure($name { target, build_compiler });
506513
}
507514

0 commit comments

Comments
 (0)