Skip to content

Commit 1c9ebe3

Browse files
cheisterevanlucas
authored andcommitted
build: set DESTCPU correctly for 'make binary' on Apple Silicon
PR-URL: #40147 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Backport-PR-URL: #41855
1 parent 7f2825b commit 1c9ebe3

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
@@ -825,6 +825,9 @@ else
825825
ifeq ($(findstring s390,$(UNAME_M)),s390)
826826
DESTCPU ?= s390
827827
else
828+
ifeq ($(findstring arm64,$(UNAME_M)),arm64)
829+
DESTCPU ?= arm64
830+
else
828831
ifeq ($(findstring arm,$(UNAME_M)),arm)
829832
DESTCPU ?= arm
830833
else
@@ -844,6 +847,7 @@ endif
844847
endif
845848
endif
846849
endif
850+
endif
847851
ifeq ($(DESTCPU),x64)
848852
ARCH=x64
849853
else

0 commit comments

Comments
 (0)