[setup.py] use "-std=c++0x" only with GCC compiler (usupported on MSVC)

This commit is contained in:
Cosimo Lupo 2015-02-26 17:56:25 +00:00
parent 855efcf75c
commit dec72c5931

View File

@ -23,6 +23,7 @@ class BuildExt(build_ext):
objects = []
for lang, sources in (("c", c_sources), ("c++", cxx_sources)):
if lang == "c++":
if self.compiler.compiler_type in ["unix", "cygwin", "mingw32"]:
extra_args.append("-std=c++0x")
macros = ext.define_macros[:]