Skip to content

Commit

Permalink
archFamily(): arm64 is aarch64, not arm; fixes tinygo-org#2985
Browse files Browse the repository at this point in the history
  • Loading branch information
dkegel-fastly authored and aykevl committed Jul 15, 2022
1 parent 7d31d98 commit 69a6718
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/llvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 69a6718

Please sign in to comment.