diff options
author | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-08-12 10:11:30 +0100 |
---|---|---|
committer | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-08-14 11:06:59 +0100 |
commit | e88fe7b2481034898a60b8dedcbbeecaf3bf75fa (patch) | |
tree | 6dce612a4a56131b80f81fe3d4d6b648c582c77c /setup.py | |
parent | d811b186c5037b434d56ddb831ceccdf5a954687 (diff) | |
download | brotli-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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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": |