From: Jeremy Hylton Date: Tue, 18 Jun 2002 19:08:40 +0000 (+0000) Subject: Define NDEBUG for releae builds, just like Python. X-Git-Tag: v2.3c1~5271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2683ac755d5fcb164926bdb2bc320dcb33bb58b0;p=python Define NDEBUG for releae builds, just like Python. XXX Why doesn't distutils on Windows use the same set of flags as Python? --- diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 8460eea967..65b114353e 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']