Define NDEBUG for releae builds, just like Python.

XXX Why doesn't distutils on Windows use the same set of flags as Python?
This commit is contained in:
Jeremy Hylton 2002-06-18 19:08:40 +00:00
parent 69d1fd2fdb
commit 2683ac755d

View 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']