mirror of
https://github.com/google/brotli.git
synced 2024-11-21 19:20:09 +00:00
python - link statically against vc_redist
This commit is contained in:
parent
a4d0581dfd
commit
593846984e
6
setup.py
6
setup.py
@ -89,6 +89,12 @@ class BuildExt(build_ext):
|
||||
# This clashes with GCC's cmath, and causes compilation errors when
|
||||
# building under MinGW: http://bugs.python.org/issue11566
|
||||
macros.append(('_hypot', 'hypot'))
|
||||
elif self.compiler.compiler_type == 'msvc':
|
||||
# msvc links dynamicall to vc_runtime140.dll,
|
||||
# which isn't installed by default on Windows 10+
|
||||
# Therefore it should be statically linked
|
||||
extra_args.append("/MT")
|
||||
|
||||
for undef in ext.undef_macros:
|
||||
macros.append((undef,))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user