Skip to content

Commit cf0eddb

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

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+
if $mode == Mode::ToolBootstrap && target != run.builder.host_target {
508+
println!("WARNING: not checking bootstrap tool {} for target {target} as it is a bootstrap (host-only) tool", stringify!($path));
509+
return;
510+
};
511+
505512
run.builder.ensure($name { target, build_compiler });
506513
}
507514

0 commit comments

Comments
 (0)