diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-18 19:08:40 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-18 19:08:40 (GMT) |
commit | 2683ac755d5fcb164926bdb2bc320dcb33bb58b0 (patch) | |
tree | d90426f916225fa56b35e5e5d8577a69c658571a /Lib/distutils | |
parent | 69d1fd2fdbe972c577d5ba63f9da5051d1900031 (diff) | |
download | cpython-2683ac755d5fcb164926bdb2bc320dcb33bb58b0.zip cpython-2683ac755d5fcb164926bdb2bc320dcb33bb58b0.tar.gz cpython-2683ac755d5fcb164926bdb2bc320dcb33bb58b0.tar.bz2 |
Define NDEBUG for releae builds, just like Python.
XXX Why doesn't distutils on Windows use the same set of flags as Python?
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/msvccompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 8460eea..65b1143 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -233,7 +233,8 @@ class MSVCCompiler (CCompiler) : self.mc = "mc.exe" self.preprocess_options = None - self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' ] + self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' , + '/DNDEBUG'] self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GX', '/Z7', '/D_DEBUG'] |