Skip to content

Commit f3a68fb

Browse files
Rollup merge of #123373 - onur-ozkan:skip-codegen, r=Mark-Simulacrum
skip Codegen{GCC,Cranelift} when using CI rustc CI rustc uses the default codegen backend, therefore we can't run `CodegenGCC` and `CodegenCranelift` tests when using it. cc `@bjorn3` (to make sure I am not doing anything wrong) Fixes #123331
2 parents fa483a4 + 167e3ab commit f3a68fb

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

+10
Original file line numberDiff line numberDiff line change
@@ -3300,6 +3300,11 @@ impl Step for CodegenCranelift {
33003300
return;
33013301
}
33023302

3303+
if builder.download_rustc() {
3304+
builder.info("CI rustc uses the default codegen backend. skipping");
3305+
return;
3306+
}
3307+
33033308
if !target_supports_cranelift_backend(run.target) {
33043309
builder.info("target not supported by rustc_codegen_cranelift. skipping");
33053310
return;
@@ -3421,6 +3426,11 @@ impl Step for CodegenGCC {
34213426
return;
34223427
}
34233428

3429+
if builder.download_rustc() {
3430+
builder.info("CI rustc uses the default codegen backend. skipping");
3431+
return;
3432+
}
3433+
34243434
let triple = run.target.triple;
34253435
let target_supported =
34263436
if triple.contains("linux") { triple.contains("x86_64") } else { false };

0 commit comments

Comments
 (0)