diff options
author | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-02-26 17:56:25 +0000 |
---|---|---|
committer | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-03-16 16:54:59 +0000 |
commit | dec72c5931d4208c95f7cc1ee55a7a347e76b54d (patch) | |
tree | 594f601633485ed6abe159e07398ed41e738c9e7 /python | |
parent | 855efcf75cf8f6854262022662871c95adb036e9 (diff) | |
download | brotli-dec72c5931d4208c95f7cc1ee55a7a347e76b54d.zip brotli-dec72c5931d4208c95f7cc1ee55a7a347e76b54d.tar.gz brotli-dec72c5931d4208c95f7cc1ee55a7a347e76b54d.tar.bz2 |
[setup.py] use "-std=c++0x" only with GCC compiler (usupported on MSVC)
Diffstat (limited to 'python')
-rw-r--r-- | python/setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/setup.py b/python/setup.py index bd229bb..220dffe 100644 --- a/python/setup.py +++ b/python/setup.py @@ -22,8 +22,9 @@ class BuildExt(build_ext): objects = [] for lang, sources in (("c", c_sources), ("c++", cxx_sources)): - if lang == "c++": - extra_args.append("-std=c++0x") + if lang == "c++": + if self.compiler.compiler_type in ["unix", "cygwin", "mingw32"]: + extra_args.append("-std=c++0x") macros = ext.define_macros[:] if platform.system() == "Darwin": |