aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 9df1135..afc0a19 100644
--- a/setup.py
+++ b/setup.py
@@ -80,6 +80,8 @@ class BuildExt(build_ext):
objects = []
for lang, sources in (("c", c_sources), ("c++", cxx_sources)):
if lang == "c++":
+ if platform.system() == "Darwin":
+ extra_args.extend(["-stdlib=libc++", "-mmacosx-version-min=10.7"])
if self.compiler.compiler_type in ["unix", "cygwin", "mingw32"]:
extra_args.append("-std=c++0x")
elif self.compiler.compiler_type == "msvc":