Skip to content

Commit e92cbe7

Browse files
committed
Use -stdlib=libc++ flag for clang
1 parent 64cce14 commit e92cbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _maybe_macos(flags):
5454
if sys.platform == 'win32':
5555
extra_link_args = []
5656
elif platform.system() in {'Darwin', 'FreeBSD'}:
57-
extra_link_args = ['-fPIC', '-lc++']
57+
extra_link_args = ['-fPIC', '-stdlib=libc++']
5858
else:
5959
extra_link_args = ['-fPIC', '-lstdc++']
6060

0 commit comments

Comments
 (0)