archFamily(): arm64 is aarch64, not arm; fixes #2985

This commit is contained in:
Dan Kegel
2022-07-15 07:14:04 -07:00
committed by Ayke
parent 7d31d98f0f
commit 69a6718b38
+3
View File
@@ -277,6 +277,9 @@ func (c *compilerContext) getPointerBitmap(typ llvm.Type, pos token.Pos) *big.In
// architecture name ("arm").
func (c *compilerContext) archFamily() string {
arch := strings.Split(c.Triple, "-")[0]
if strings.HasPrefix(arch, "arm64") {
return "aarch64"
}
if strings.HasPrefix(arch, "arm") || strings.HasPrefix(arch, "thumb") {
return "arm"
}