Skip to content

Commit

Permalink
build: set DESTCPU correctly for 'make binary' on Apple Silicon
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cheister authored and evanlucas committed Apr 15, 2022
1 parent 7f2825b commit 1c9ebe3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@ else
ifeq ($(findstring s390,$(UNAME_M)),s390)
DESTCPU ?= s390
else
ifeq ($(findstring arm64,$(UNAME_M)),arm64)
DESTCPU ?= arm64
else
ifeq ($(findstring arm,$(UNAME_M)),arm)
DESTCPU ?= arm
else
Expand All @@ -844,6 +847,7 @@ endif
endif
endif
endif
endif
ifeq ($(DESTCPU),x64)
ARCH=x64
else
Expand Down

0 comments on commit 1c9ebe3

Please sign in to comment.