Skip to content

Commit fcc7fc4

Browse files
authored
Add support for recognizing some architectures supported by GCC, but not LLVM. (#1500)
1 parent 9df3ccc commit fcc7fc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/target/parser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ fn parse_arch(full_arch: &str) -> Option<&str> {
184184
"s390x" => "s390x",
185185
"xtensa" => "xtensa",
186186

187+
// Arches supported by gcc, but not LLVM.
188+
arch if arch.starts_with("alpha") => "alpha", // DEC Alpha
189+
"hppa" => "hppa", // https://en.wikipedia.org/wiki/PA-RISC, also known as HPPA
190+
arch if arch.starts_with("sh") => "sh", // SuperH
187191
_ => return None,
188192
})
189193
}

0 commit comments

Comments
 (0)