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 bd6f39b commit 17f4aa0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ def build_extensions(self):
self.compiler.compiler_so.remove('-Wstrict-prototypes')
except (ValueError, AttributeError):
pass
if sys.platform == 'win32':
# 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
self.compiler.compile_options.append('/d2FH4-')

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

0 comments on commit 17f4aa0

Please sign in to comment.