From c73ac527d61ba429f81e5ed50c20a91c2ae000c2 Mon Sep 17 00:00:00 2001 From: Chris Heisterkamp Date: Sat, 18 Sep 2021 16:49:22 -0700 Subject: [PATCH] build: set DESTCPU correctly for 'make binary' on Apple Silicon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40147 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Backport-PR-URL: https://github.com/nodejs/node/pull/41855 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8a02f1fc66ebf5..82281b581193bb 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -844,6 +847,7 @@ endif endif endif endif +endif ifeq ($(DESTCPU),x64) ARCH=x64 else