mirror of
https://github.com/google/brotli.git
synced 2024-11-09 21:50:07 +00:00
[setup.py] use "-std=c++0x" only with GCC compiler (usupported on MSVC)
This commit is contained in:
parent
855efcf75c
commit
dec72c5931
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user