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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ash Cripps <[email protected]>
  • Loading branch information
evanlucas authored and richardlau committed Sep 1, 2020
1 parent f1fcd66 commit d06e158
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d06e158

Please sign in to comment.