From 2a7337145fcb63219d7570a62f531de4c1a9458a Mon Sep 17 00:00:00 2001 From: Matthias Fey Date: Wed, 22 Mar 2023 14:48:34 +0100 Subject: [PATCH] Fix macOS builds (#320) * update * update --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index b97bfa67..b960c9e4 100644 --- a/setup.py +++ b/setup.py @@ -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()