mirror of
https://github.com/google/brotli.git
synced 2024-11-08 13:20:05 +00:00
[setup.py] pass extra compiler flags on OS X to enable support for C++11: -stdlib=libc++ -mmacosx-version-min=10.7
This commit is contained in:
parent
d811b186c5
commit
e88fe7b248
2
setup.py
2
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":
|
||||
|
Loading…
Reference in New Issue
Block a user