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

Commit b6ea94c

Browse files
committed
Fix compilation with anaconda
See pandas-dev/pandas#24274 for details
1 parent 342f9a3 commit b6ea94c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
from setuptools.command.test import test as TestCommand
33
import sys
44

5+
extra_args = ["-std=c++11"]
6+
if sys.platform == "darwin":
7+
extra_args.append("-stdlib=libc++")
8+
59
noaho_module = Extension(
610
"noahong",
711
sources=[
@@ -11,8 +15,8 @@
1115
"src/array-aho.cpp",
1216
],
1317
depends=["src/array-aho.h", "src/noahong.pyx"],
14-
extra_compile_args=["-std=c++11"],
15-
extra_link_args=["-std=c++11"],
18+
extra_compile_args=extra_args,
19+
extra_link_args=extra_args,
1620
)
1721

1822

0 commit comments

Comments
 (0)