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
committerNode.js GitHub Bot <github-bot@iojs.org>2021-09-29 13:11:54 +0300
commit5607de8c132a45555fe1013a6519918f83bb6718 (patch)
treec22e5ef460c117c08682f8c70018043934c5fce0 /Makefile
parent88b497a11bec6c85496e1273f5ff2acefa62df11 (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