Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit bedb49f

Browse files
authored
Merge branch 'r0.23' into gauri/macos_cast_r023
2 parents e239c52 + 0a4b3e3 commit bedb49f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def add_platform_specific_link_args(link_args):
326326
link_args += ['-z', 'now']
327327
elif sys.platform == 'darwin':
328328
link_args += ['-Wl,-rpath,@loader_path/../..']
329+
link_args += ['-stdlib=libc++']
329330

330331

331332
class BuildExt(build_ext):
@@ -360,6 +361,8 @@ def build_extensions(self):
360361

361362
ext.extra_compile_args += ['-Wformat', '-Wformat-security']
362363
ext.extra_compile_args += ['-O2', '-D_FORTIFY_SOURCE=2']
364+
if sys.platform == 'darwin':
365+
ext.extra_compile_args += ['-stdlib=libc++']
363366
build_ext.build_extensions(self)
364367

365368

0 commit comments

Comments
 (0)