mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Only run cg_gcc tests on linux x86_64
This commit is contained in:
parent
edfd67b598
commit
4b290d40a5
@ -3121,16 +3121,8 @@ impl Step for CodegenGCC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let triple = run.target.triple;
|
let triple = run.target.triple;
|
||||||
let target_supported = if triple.contains("linux") {
|
let target_supported =
|
||||||
triple.contains("x86_64")
|
if triple.contains("linux") { triple.contains("x86_64") } else { false };
|
||||||
|| triple.contains("aarch64")
|
|
||||||
|| triple.contains("s390x")
|
|
||||||
|| triple.contains("riscv64gc")
|
|
||||||
} else if triple.contains("darwin") || triple.contains("windows") {
|
|
||||||
triple.contains("x86_64")
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
};
|
|
||||||
if !target_supported {
|
if !target_supported {
|
||||||
builder.info("target not supported by rustc_codegen_gcc. skipping");
|
builder.info("target not supported by rustc_codegen_gcc. skipping");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user