[build] Use macOS specific settings only for macOS builds

Fixes #143
This commit is contained in:
Luigi Pinca
2022-01-02 08:44:41 +01:00
parent 7896abc8f1
commit 4ed9f76a19
+9 -5
View File
@@ -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']
}
}]
]
}
]
}