Skip to content

Commit 2a73371

Browse files
authored
Fix macOS builds (#320)
* update * update
1 parent 3b7598e commit 2a73371

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def get_extensions():
6767
extra_compile_args = {'cxx': ['-O3']}
6868
if not os.name == 'nt': # Not on Windows:
6969
extra_compile_args['cxx'] += ['-Wno-sign-compare']
70+
if sys.platform == 'darwin': # On macOS:
71+
extra_compile_args['cxx'] += ['-D_LIBCPP_DISABLE_AVAILABILITY']
7072
extra_link_args = [] if WITH_SYMBOLS else ['-s']
7173

7274
info = parallel_info()

0 commit comments

Comments
 (0)