Skip to content

Commit

Permalink
[build] Use macOS specific settings only for macOS builds
Browse files Browse the repository at this point in the history
Fixes #143
  • Loading branch information
lpinca committed Jan 2, 2022
1 parent 94be189 commit 5b4db78
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
'target_name': 'bufferutil',
'sources': ['src/bufferutil.c'],
'cflags': ['-std=c99'],
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CFLAGS': ['-arch x86_64', '-arch arm64'],
'OTHER_LDFLAGS': ['-arch x86_64', '-arch arm64']
}
'conditions': [
["OS=='mac'", {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CFLAGS': ['-arch x86_64', '-arch arm64'],
'OTHER_LDFLAGS': ['-arch x86_64', '-arch arm64']
}
}]
]
}
]
}

0 comments on commit 5b4db78

Please sign in to comment.