diff options
author | Dan Kegel <[email protected]> | 2022-07-15 07:14:04 -0700 |
---|---|---|
committer | Ayke <[email protected]> | 2022-07-15 17:41:39 +0200 |
commit | 69a6718b38b8afd9245d03f1b92d3cb7c0b435ea (patch) | |
tree | 3bb8a9285846b705bc97584018fa042778151fcb | |
parent | 7d31d98f0f296712ec7e59737a150f7193a1e3f3 (diff) | |
download | tinygo-69a6718b38b8afd9245d03f1b92d3cb7c0b435ea.tar.gz tinygo-69a6718b38b8afd9245d03f1b92d3cb7c0b435ea.zip |
archFamily(): arm64 is aarch64, not arm; fixes #2985
-rw-r--r-- | compiler/llvm.go | 3 |
1 files changed, 3 insertions, 0 deletions
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" } |