Files
MINGW-packages/mingw-w64-python-numexpr/0001-setup-fix-build.patch
2022-03-17 11:03:15 +05:30

14 lines
320 B
Diff

--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,9 @@
extra_link_args = []
if platform.uname().system == 'Windows':
- extra_cflags = ['/O2']
+ # For MSVC only
+ if "MSC" in platform.python_compiler():
+ extra_cflags = ['/O2']
extra_link_args = []
sources.append('numexpr/win32/pthread.c')
else: