Skip to content

Commit 042451c

Browse files
Skipp GCC backend-specific test if current backend is already gcc
1 parent 659feac commit 042451c

File tree

1 file changed

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

1 file changed

+14
-0
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3744,6 +3744,20 @@ impl Step for CodegenGCC {
37443744
return;
37453745
}
37463746

3747+
// It we were running with GCC backend tests, no need to run these tests.
3748+
if let Some(codegen_backend) = run.builder.config.cmd.test_codegen_backend() {
3749+
if codegen_backend.is_gcc() {
3750+
return;
3751+
}
3752+
} else if run
3753+
.builder
3754+
.config
3755+
.default_codegen_backend(compilers.target_compiler().host)
3756+
.is_gcc()
3757+
{
3758+
return;
3759+
}
3760+
37473761
if builder.download_rustc() {
37483762
builder.info("CI rustc uses the default codegen backend. skipping");
37493763
return;

0 commit comments

Comments
 (0)