Skip to content

Commit 48c162d

Browse files
cheistertargos
authored andcommitted
build: set DESTCPU correctly for 'make binary' on Apple Silicon
PR-URL: #40147 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 66edb7b commit 48c162d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

+4
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)