Skip to content

Commit

Permalink
Disable FH4 so that we don't require VCRUNTIME140_1.dll.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Aug 22, 2020
1 parent 8511771 commit 2519159
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ def build_extensions(self):
self.compiler.compiler_so.remove('-Wstrict-prototypes')
except (ValueError, AttributeError):
pass
if self.compiler.compiler_type == 'msvc':
# Disable FH4 so that we don't require VCRUNTIME140_1.dll. For more
# details, see:
# https://devblogs.microsoft.com/cppblog/making-cpp-exception-handling-smaller-x64/
# https://github.com/joerick/cibuildwheel/issues/423#issuecomment-677763904
for ext in self.extensions:
ext.extra_compile_args.append('/d2FH4-')

env = self.add_optimization_flags()
for package in good_packages:
Expand Down

0 comments on commit 2519159

Please sign in to comment.