Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Heisterkamp <cheister@squareup.com>2021-09-19 02:49:22 +0300
committerMichaël Zasso <targos@protonmail.com>2021-10-04 21:32:14 +0300
commit48c162d4579975ba0d6cd71b3666ceeba86b03ce (patch)
tree965167c59c6832c3b1a5946eaf6e4af2a1546b52 /Makefile
parent66edb7bfe153baf57dbbe5cb26591dc7263b26b6 (diff)
build: set DESTCPU correctly for 'make binary' on Apple Silicon
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d85ad7e7097..e55bd8d7024 100644
--- a/Makefile
+++ b/Makefile
@@ -827,6 +827,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
@@ -850,6 +853,7 @@ endif
endif
endif
endif
+endif
ifeq ($(DESTCPU),x64)
ARCH=x64
else