]> granicus.if.org Git - python/commitdiff
Define NDEBUG for releae builds, just like Python.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 18 Jun 2002 19:08:40 +0000 (19:08 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 18 Jun 2002 19:08:40 +0000 (19:08 +0000)
XXX Why doesn't distutils on Windows use the same set of flags as Python?

Lib/distutils/msvccompiler.py

index 8460eea9677d89b711087196b46afc907262f7da..65b114353e8c2231a4a528cc138b4cc08bd64aba 100644 (file)
@@ -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']