From 449aa665d29bead65f995f200260c5130b2a77c9 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 da7758afc4c3c3..f57a054434f281 100644 --- a/common.gypi +++ b/common.gypi @@ -500,6 +500,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',