Skip to content

Commit 68b4391

Browse files
cheisterevanlucas
authored andcommitted
build: set DESTCPU correctly for 'make binary' on Apple Silicon
PR-URL: nodejs#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]> Backport-PR-URL: nodejs#41855
1 parent e64bc43 commit 68b4391

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)