[setup.py] enable C++ exception handling on MSVC compiler to fix warning C4530

This commit is contained in:
Cosimo Lupo 2015-02-26 17:58:28 +00:00
parent dec72c5931
commit 3113fe7163

View File

@ -25,6 +25,8 @@ class BuildExt(build_ext):
if lang == "c++":
if self.compiler.compiler_type in ["unix", "cygwin", "mingw32"]:
extra_args.append("-std=c++0x")
elif self.compiler.compiler_type == "msvc":
extra_args.append("/EHsc")
macros = ext.define_macros[:]
if platform.system() == "Darwin":