We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd6f39b commit 9a11c61Copy full SHA for 9a11c61
setup.py
@@ -169,6 +169,13 @@ def build_extensions(self):
169
self.compiler.compiler_so.remove('-Wstrict-prototypes')
170
except (ValueError, AttributeError):
171
pass
172
+ if sys.platform == 'win32':
173
+ # Disable FH4 so that we don't require VCRUNTIME140_1.dll. For more
174
+ # details, see:
175
+ # https://devblogs.microsoft.com/cppblog/making-cpp-exception-handling-smaller-x64/
176
+ # https://github.com/joerick/cibuildwheel/issues/423#issuecomment-677763904
177
+ for ext in self.extensions:
178
+ ext.extra_compile_args.append('/d2FH4-')
179
180
env = self.add_optimization_flags()
181
for package in good_packages:
0 commit comments