From 7e89684b8ca681244f9dd1eb11d1d3fbbc569ad0 Mon Sep 17 00:00:00 2001 From: Jon Kunkee Date: Wed, 12 Dec 2018 12:57:30 -0800 Subject: [PATCH] win,build: add ARM64 sections to common.gypi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/25995 Reviewed-By: João Reis --- common.gypi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common.gypi b/common.gypi index 15497032e7e51b..b254db478f4ab9 100644 --- a/common.gypi +++ b/common.gypi @@ -307,6 +307,14 @@ }], ], }], + ['target_arch=="arm64"', { + 'TargetMachine' : 0, # /MACHINE:ARM64 is inferred from the input files. + 'target_conditions': [ + ['_type=="executable"', { + 'AdditionalOptions': [ '/SubSystem:Console' ], + }], + ], + }], ], 'GenerateDebugInformation': 'true', 'GenerateMapFile': 'true', # /MAP @@ -332,6 +340,9 @@ # Ususaly safe. Disable for `dep`, enable for `src` 'msvs_disabled_warnings': [4351, 4355, 4800, 4251, 4275, 4244, 4267], 'conditions': [ + [ 'target_arch=="arm64"', { + 'msvs_configuration_platform': 'arm64', + }], ['asan == 1 and OS != "mac"', { 'cflags+': [ '-fno-omit-frame-pointer',