diff options
author | Han <hangenuit@gmail.com> | 2011-09-14 15:19:07 +0200 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-10-04 11:29:31 -0600 |
commit | be070517dd285d7ca870b5ac74f6269e11f21843 (patch) | |
tree | 4d0d73d099775bb15c994000b68a827c6fb0e2fb | |
parent | 1fa57b6ef5a1dcfd78a9a7f4585f647977f1c01b (diff) | |
download | numpy-be070517dd285d7ca870b5ac74f6269e11f21843.tar.gz |
ENH: In debug mode, do not use customized MSVC runtime library.
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index cfb66c991..156db006a 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -175,6 +175,9 @@ class Mingw32CCompiler(distutils.cygwinccompiler.CygwinCCompiler): if not libraries: libraries = [] libraries.append(runtime_library) + if debug: + # There is no customized msvcr lib in debug mode + self.undefine_macro('NPY_MINGW_USE_CUSTOM_MSVCR') args = (self, target_desc, objects, |