From e3b79e3bbe635fc7f57ff3df0c99dbb8f63ce05e Mon Sep 17 00:00:00 2001 From: Evan Lucas Date: Tue, 7 Jul 2020 07:35:32 -0500 Subject: [PATCH] build: add support for build on arm64 Ref: https://github.com/nodejs/TSC/issues/886 Ref: https://github.com/nodejs/node/issues/34043 PR-URL: https://github.com/nodejs/node/pull/34238 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Ash Cripps --- common.gypi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common.gypi b/common.gypi index f5d6dc077a6..bd0213a3492 100644 --- a/common.gypi +++ b/common.gypi @@ -491,6 +491,14 @@ ['target_arch=="x64"', { 'xcode_settings': {'ARCHS': ['x86_64']}, }], + ['target_arch=="arm64"', { + 'xcode_settings': { + 'ARCHS': ['arm64'], + 'OTHER_LDFLAGS!': [ + '-Wl,-no_pie', + ], + }, + }], ['clang==1', { 'xcode_settings': { 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',