Skip to content

Commit fad2ab4

Browse files
Ignore coverage tests for GCC
1 parent 12ae94c commit fad2ab4

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
@@ -1573,6 +1573,15 @@ impl Step for Coverage {
15731573
let compiler = run.builder.compiler(run.builder.top_stage, run.build_triple());
15741574
let target = run.target;
15751575

1576+
// GCC cannot run coverage tests.
1577+
if let Some(codegen_backend) = run.builder.config.cmd.test_codegen_backend() {
1578+
if codegen_backend.is_gcc() {
1579+
return;
1580+
}
1581+
} else if run.builder.config.default_codegen_backend(compiler.host).is_gcc() {
1582+
return;
1583+
}
1584+
15761585
// List of (coverage) test modes that the coverage test suite will be
15771586
// run in. It's OK for this to contain duplicates, because the call to
15781587
// `Builder::ensure` below will take care of deduplication.

0 commit comments

Comments
 (0)