Only run cg_gcc tests on linux x86_64

This commit is contained in:
Guillaume Gomez 2023-10-28 20:35:49 +02:00
parent edfd67b598
commit 4b290d40a5

View File

@ -3121,16 +3121,8 @@ impl Step for CodegenGCC {
}
let triple = run.target.triple;
let target_supported = if triple.contains("linux") {
triple.contains("x86_64")
|| triple.contains("aarch64")
|| triple.contains("s390x")
|| triple.contains("riscv64gc")
} else if triple.contains("darwin") || triple.contains("windows") {
triple.contains("x86_64")
} else {
false
};
let target_supported =
if triple.contains("linux") { triple.contains("x86_64") } else { false };
if !target_supported {
builder.info("target not supported by rustc_codegen_gcc. skipping");
return;