Skip to content

Commit b8d1a38

Browse files
committed
BLD: use libc++ for mac os builds. Min mac os version 10.9 (pandas-dev#23424)
1 parent 0e7cf48 commit b8d1a38

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
def is_platform_windows():
2424
return sys.platform == 'win32' or sys.platform == 'cygwin'
2525

26-
2726
min_numpy_ver = '1.12.0'
2827
setuptools_kwargs = {
2928
'install_requires': [
@@ -426,14 +425,12 @@ def get_tag(self):
426425
else:
427426
endian_macro = [('__LITTLE_ENDIAN__', '1')]
428427

429-
430428
if is_platform_windows():
431429
extra_compile_args = []
432430
else:
433431
# args to ignore warnings
434432
extra_compile_args = ['-Wno-unused-function']
435-
436-
433+
437434
# enable coverage by building cython files by setting the environment variable
438435
# "PANDAS_CYTHON_COVERAGE" (with a Truthy value) or by running build_ext
439436
# with `--with-cython-coverage`enabled
@@ -675,7 +672,8 @@ def srcpath(name=None, suffix='.pyx', subdir='src'):
675672
include_dirs=include,
676673
language=data.get('language', 'c'),
677674
define_macros=data.get('macros', macros),
678-
extra_compile_args=extra_compile_args)
675+
extra_compile_args=['-stdlib=libc++', '-mmacosx-version-min=10.9'] + extra_compile_args,
676+
extra_link_args=['-stdlib=libc++', '-mmacosx-version-min=10.9'])
679677

680678
extensions.append(obj)
681679

0 commit comments

Comments
 (0)