Commit f11ccfc4 authored by Rob Earhart's avatar Rob Earhart

Use libc++ for macOS core python wheel

parent aa41e4ff
...@@ -326,6 +326,7 @@ def add_platform_specific_link_args(link_args): ...@@ -326,6 +326,7 @@ def add_platform_specific_link_args(link_args):
link_args += ['-z', 'now'] link_args += ['-z', 'now']
elif sys.platform == 'darwin': elif sys.platform == 'darwin':
link_args += ['-Wl,-rpath,@loader_path/../..'] link_args += ['-Wl,-rpath,@loader_path/../..']
link_args += ['-stdlib=libc++']
class BuildExt(build_ext): class BuildExt(build_ext):
...@@ -360,6 +361,8 @@ class BuildExt(build_ext): ...@@ -360,6 +361,8 @@ class BuildExt(build_ext):
ext.extra_compile_args += ['-Wformat', '-Wformat-security'] ext.extra_compile_args += ['-Wformat', '-Wformat-security']
ext.extra_compile_args += ['-O2', '-D_FORTIFY_SOURCE=2'] ext.extra_compile_args += ['-O2', '-D_FORTIFY_SOURCE=2']
if sys.platform == 'darwin':
ext.extra_compile_args += ['-stdlib=libc++']
build_ext.build_extensions(self) build_ext.build_extensions(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment