From 69a6718b38b8afd9245d03f1b92d3cb7c0b435ea Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Fri, 15 Jul 2022 07:14:04 -0700 Subject: archFamily(): arm64 is aarch64, not arm; fixes #2985 --- compiler/llvm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/llvm.go b/compiler/llvm.go index 754c62ad8..0d2ba9da7 100644 --- a/compiler/llvm.go +++ b/compiler/llvm.go @@ -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" } -- cgit v1.2.3