Skip to content

Commit

Permalink
Merge pull request numpy#6187 from charris/fix-busted-mingw-build
Browse files Browse the repository at this point in the history
BLD: Option /GL does not exist for mingw32 compiler.
  • Loading branch information
charris committed Aug 10, 2015
2 parents fe0cb80 + f5dff9f commit 88f283d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion numpy/core/setup_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import copy
import binascii

from numpy.distutils.misc_util import mingw32


#-------------------
# Versioning support
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 88f283d

Please sign in to comment.