summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-08-10 10:23:46 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-08-10 10:23:46 -0600
commitf5dff9fe51b3bf07ba9b66e550f3cabc2fc3937b (patch)
treebef081c1cb027d4bd3bb81b4e4448cff9bf61e79 /numpy/core/setup_common.py
parentfe0cb80d225508813de21e048c2f1529c2dc6a75 (diff)
downloadnumpy-f5dff9fe51b3bf07ba9b66e550f3cabc2fc3937b.tar.gz
BLD: Option /GL does not exit for mingw32 compiler.
The option was removed on the win32 platform regardless of actual compiler, leading to an error.
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index 3afe40f28..253dad5b6 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -6,6 +6,8 @@ import warnings
import copy
import binascii
+from numpy.distutils.misc_util import mingw32
+
#-------------------
# Versioning support
@@ -184,7 +186,7 @@ def check_long_double_representation(cmd):
# Disable whole program optimization (the default on vs2015, with python 3.5+)
# which generates intermediary object files and prevents checking the
# float representation.
- if sys.platform == "win32":
+ if sys.platform == "win32" and not mingw32():
try:
cmd.compiler.compile_options.remove("/GL")
except ValueError: