From be070517dd285d7ca870b5ac74f6269e11f21843 Mon Sep 17 00:00:00 2001 From: Han Date: Wed, 14 Sep 2011 15:19:07 +0200 Subject: ENH: In debug mode, do not use customized MSVC runtime library. --- numpy/distutils/mingw32ccompiler.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/distutils/mingw32ccompiler.py') 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, -- cgit v1.2.1