Browse Source

Parse "aarch64" in machine triplet as ARM64, to allow compiling on Linux ARM64.

tags/v2.2.1
Andrew Belt 1 year ago
parent
commit
20a94860eb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      arch.mk

+ 1
- 1
arch.mk View File

@@ -3,7 +3,7 @@ MACHINE := $(shell $(CC) -dumpmachine)
ifneq (,$(findstring x86_64-,$(MACHINE))) ifneq (,$(findstring x86_64-,$(MACHINE)))
ARCH_X64 := 1 ARCH_X64 := 1
ARCH_CPU := x64 ARCH_CPU := x64
else ifneq (,$(findstring arm64-,$(MACHINE)))
else ifneq (,$(findstring arm64-,$(MACHINE))$(findstring aarch64-,$(MACHINE)))
ARCH_ARM64 := 1 ARCH_ARM64 := 1
ARCH_CPU := arm64 ARCH_CPU := arm64
else else


Loading…
Cancel
Save