Do not ever cross-check bootstrap tools

This commit is contained in:
Jakub Beránek 2025-07-05 23:56:17 +02:00
parent baa55aef3a
commit 5dc77ba658
No known key found for this signature in database
GPG key ID: 909CD0D26483516B
2 changed files with 7 additions and 2 deletions

View file

@ -502,6 +502,13 @@ macro_rules! tool_check_step {
fn make_run(run: RunConfig<'_>) {
let target = run.target;
let build_compiler = prepare_compiler_for_check(run.builder, target, $mode);
// It doesn't make sense to cross-check bootstrap tools
if $mode == Mode::ToolBootstrap && target != run.builder.host_target {
println!("WARNING: not checking bootstrap tool {} for target {target} as it is a bootstrap (host-only) tool", stringify!($path));
return;
};
run.builder.ensure($name { target, build_compiler });
}

View file

@ -1313,11 +1313,9 @@ mod snapshot {
[check] rustc 1 <host> -> Clippy 2 <target1>
[check] rustc 1 <host> -> Miri 2 <target1>
[check] rustc 1 <host> -> CargoMiri 2 <target1>
[check] rustc 0 <host> -> MiroptTestTools 1 <target1>
[check] rustc 1 <host> -> Rustfmt 2 <target1>
[check] rustc 1 <host> -> rust-analyzer 2 <target1>
[check] rustc 1 <host> -> TestFloatParse 2 <target1>
[check] rustc 0 <host> -> FeaturesStatusDump 1 <target1>
[check] rustc 1 <host> -> std 1 <target1>
");
}