summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-18 19:08:40 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-18 19:08:40 (GMT)
commit2683ac755d5fcb164926bdb2bc320dcb33bb58b0 (patch)
treed90426f916225fa56b35e5e5d8577a69c658571a /Lib/distutils
parent69d1fd2fdbe972c577d5ba63f9da5051d1900031 (diff)
downloadcpython-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.py3
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']