Skip to content

Commit 5b4db78

Browse files
committed
[build] Use macOS specific settings only for macOS builds
Fixes #143
1 parent 94be189 commit 5b4db78

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

binding.gyp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
'target_name': 'bufferutil',
55
'sources': ['src/bufferutil.c'],
66
'cflags': ['-std=c99'],
7-
'xcode_settings': {
8-
'MACOSX_DEPLOYMENT_TARGET': '10.7',
9-
'OTHER_CFLAGS': ['-arch x86_64', '-arch arm64'],
10-
'OTHER_LDFLAGS': ['-arch x86_64', '-arch arm64']
11-
}
7+
'conditions': [
8+
["OS=='mac'", {
9+
'xcode_settings': {
10+
'MACOSX_DEPLOYMENT_TARGET': '10.7',
11+
'OTHER_CFLAGS': ['-arch x86_64', '-arch arm64'],
12+
'OTHER_LDFLAGS': ['-arch x86_64', '-arch arm64']
13+
}
14+
}]
15+
]
1216
}
1317
]
1418
}

0 commit comments

Comments
 (0)