Skip to content

Commit

Permalink
build: add support for build on arm64
Browse files Browse the repository at this point in the history
Ref: nodejs/TSC#886
Ref: #34043

PR-URL: #34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
  • Loading branch information
evanlucas authored and addaleax committed Sep 22, 2020
1 parent f6c0b27 commit d2f44a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common.gypi
Expand Up @@ -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',
Expand Down

0 comments on commit d2f44a7

Please sign in to comment.