Skip to content

Commit

Permalink
Fix macOS builds (#320)
Browse files Browse the repository at this point in the history
* update

* update
  • Loading branch information
rusty1s committed Mar 22, 2023
1 parent 3b7598e commit 2a73371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def get_extensions():
extra_compile_args = {'cxx': ['-O3']}
if not os.name == 'nt': # Not on Windows:
extra_compile_args['cxx'] += ['-Wno-sign-compare']
if sys.platform == 'darwin': # On macOS:
extra_compile_args['cxx'] += ['-D_LIBCPP_DISABLE_AVAILABILITY']
extra_link_args = [] if WITH_SYMBOLS else ['-s']

info = parallel_info()
Expand Down

0 comments on commit 2a73371

Please sign in to comment.