aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-08-12 10:11:30 +0100
committerCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-08-14 11:06:59 +0100
commite88fe7b2481034898a60b8dedcbbeecaf3bf75fa (patch)
tree6dce612a4a56131b80f81fe3d4d6b648c582c77c /setup.py
parentd811b186c5037b434d56ddb831ceccdf5a954687 (diff)
downloadbrotli-e88fe7b2481034898a60b8dedcbbeecaf3bf75fa.zip
brotli-e88fe7b2481034898a60b8dedcbbeecaf3bf75fa.tar.gz
brotli-e88fe7b2481034898a60b8dedcbbeecaf3bf75fa.tar.bz2
[setup.py] pass extra compiler flags on OS X to enable support for C++11: -stdlib=libc++ -mmacosx-version-min=10.7
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":