skip Codegen{GCC,Cranelift} when using CI rustc

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-04-02 18:15:05 +03:00
parent 3d5528c287
commit 167e3ab8c8

View File

@ -3223,6 +3223,11 @@ impl Step for CodegenCranelift {
return;
}
if builder.download_rustc() {
builder.info("CI rustc uses the default codegen backend. skipping");
return;
}
if !target_supports_cranelift_backend(run.target) {
builder.info("target not supported by rustc_codegen_cranelift. skipping");
return;
@ -3344,6 +3349,11 @@ impl Step for CodegenGCC {
return;
}
if builder.download_rustc() {
builder.info("CI rustc uses the default codegen backend. skipping");
return;
}
let triple = run.target.triple;
let target_supported =
if triple.contains("linux") { triple.contains("x86_64") } else { false };