Skip to content

Commit f072df1

Browse files
Ignore coverage tests for GCC
1 parent 1c075ac commit f072df1

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
@@ -1590,6 +1590,15 @@ impl Step for Coverage {
15901590
let compiler = run.builder.compiler(run.builder.top_stage, run.build_triple());
15911591
let target = run.target;
15921592

1593+
// GCC cannot run coverage tests.
1594+
if let Some(codegen_backend) = run.builder.config.cmd.test_codegen_backend() {
1595+
if codegen_backend.is_gcc() {
1596+
return;
1597+
}
1598+
} else if run.builder.config.default_codegen_backend(compiler.host).is_gcc() {
1599+
return;
1600+
}
1601+
15931602
// List of (coverage) test modes that the coverage test suite will be
15941603
// run in. It's OK for this to contain duplicates, because the call to
15951604
// `Builder::ensure` below will take care of deduplication.

0 commit comments

Comments
 (0)