14 lines
320 B
Diff
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:
|