Skip to content

Commit 9ee26a6

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

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3744,6 +3744,15 @@ 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.builder.config.default_codegen_backend(compiler.host).is_gcc() {
3753+
return;
3754+
}
3755+
37473756
if builder.download_rustc() {
37483757
builder.info("CI rustc uses the default codegen backend. skipping");
37493758
return;

0 commit comments

Comments
 (0)