const ARCH_TABLE: &[(&str, &str)] = &[
("aarch64", "aarch64"),
+ ("aarch64_be", "aarch64"),
("amd64", "x86_64"),
("arm", "arm"),
("arm64", "aarch64"),
];
const BIG_ENDIAN: &[&str] = &[
+ "aarch64_be",
"armebv7r",
"mips",
"mips64",
}
pub fn get_pointer_width(triple: &str) -> &'static str {
- if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") {
+ if (triple.contains("64") && !triple.ends_with("gnux32") && !triple.ends_with("gnu_ilp32"))
+ || triple.starts_with("s390x")
+ {
"64bit"
} else if triple.starts_with("avr") {
"16bit"