File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1575,10 +1575,16 @@ impl Step for Coverage {
1575
1575
1576
1576
// GCC cannot run coverage tests.
1577
1577
if let Some ( codegen_backend) = run. builder . config . cmd . test_codegen_backend ( ) {
1578
+ eprintln ! (
1579
+ "WARNING: Already testing with GCC backend so ignoring `rustc_codegen_gcc` testsuite"
1580
+ ) ;
1578
1581
if codegen_backend. is_gcc ( ) {
1579
1582
return ;
1580
1583
}
1581
1584
} else if run. builder . config . default_codegen_backend ( compiler. host ) . is_gcc ( ) {
1585
+ eprintln ! (
1586
+ "WARNING: Already testing with GCC backend so ignoring `rustc_codegen_gcc` testsuite"
1587
+ ) ;
1582
1588
return ;
1583
1589
}
1584
1590
@@ -3744,6 +3750,20 @@ impl Step for CodegenGCC {
3744
3750
return ;
3745
3751
}
3746
3752
3753
+ // It we were running with GCC backend tests, no need to run these tests.
3754
+ if let Some ( codegen_backend) = run. builder . config . cmd . test_codegen_backend ( ) {
3755
+ if codegen_backend. is_gcc ( ) {
3756
+ return ;
3757
+ }
3758
+ } else if run
3759
+ . builder
3760
+ . config
3761
+ . default_codegen_backend ( compilers. target_compiler ( ) . host )
3762
+ . is_gcc ( )
3763
+ {
3764
+ return ;
3765
+ }
3766
+
3747
3767
if builder. download_rustc ( ) {
3748
3768
builder. info ( "CI rustc uses the default codegen backend. skipping" ) ;
3749
3769
return ;
You can’t perform that action at this time.
0 commit comments