summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-20 17:32:33 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-20 17:32:33 +0000
commitf531cfb60fd0e4dec69354bfd61109defa99ea5e (patch)
tree71f52733b943846a39782fe14009d7b967aa71f9 /numpy/distutils/mingw32ccompiler.py
parente09cd4df81906bbeb58f9fbe410cbf308324dc55 (diff)
downloadnumpy-f531cfb60fd0e4dec69354bfd61109defa99ea5e.tar.gz
Remove handling of MS_WIN64 in commands: deal with it in mingw tool only.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 74984b5a4..15da9471b 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -93,6 +93,11 @@ class Mingw32CCompiler(distutils.cygwinccompiler.CygwinCCompiler):
# linker_exe='gcc -mno-cygwin',
# linker_so='%s --driver-name g++ -mno-cygwin -mdll -static %s'
# % (self.linker, entry_point))
+
+ # MS_WIN64 should be defined when building for amd64 on windows, but
+ # python headers define it only for MS compilers, which has all kind of
+ # bad consequences, like using Py_ModuleInit4 instead of
+ # Py_ModuleInit4_64, etc... So we add it here
if get_build_architecture() == 'AMD64':
self.set_executables(
compiler='gcc -DMS_WIN64 -mno-cygwin -O0 -Wall',