mirror of
https://github.com/google/brotli.git
synced 2024-11-08 13:20:05 +00:00
[setup.py] enable C++ exception handling on MSVC compiler to fix warning C4530
This commit is contained in:
parent
dec72c5931
commit
3113fe7163
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user