Skip to content

Commit 03306d9

Browse files
committed
build: set DESTCPU correctly for 'make binary' on Apple Silicon
1 parent 3101c09 commit 03306d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,9 @@ else
827827
ifeq ($(findstring s390,$(UNAME_M)),s390)
828828
DESTCPU ?= s390
829829
else
830+
ifeq ($(findstring arm64,$(UNAME_M)),arm64)
831+
DESTCPU ?= arm64
832+
else
830833
ifeq ($(findstring arm,$(UNAME_M)),arm)
831834
DESTCPU ?= arm
832835
else
@@ -850,6 +853,7 @@ endif
850853
endif
851854
endif
852855
endif
856+
endif
853857
ifeq ($(DESTCPU),x64)
854858
ARCH=x64
855859
else

0 commit comments

Comments
 (0)