From 2683ac755d5fcb164926bdb2bc320dcb33bb58b0 Mon Sep 17 00:00:00 2001
From: Jeremy Hylton <jeremy@alum.mit.edu>
Date: Tue, 18 Jun 2002 19:08:40 +0000
Subject: Define NDEBUG for releae builds, just like Python.

XXX Why doesn't distutils on Windows use the same set of flags as Python?
---
 Lib/distutils/msvccompiler.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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']
 
-- 
cgit v0.12