Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2683ac7

Browse files
committed
Define NDEBUG for releae builds, just like Python.
XXX Why doesn't distutils on Windows use the same set of flags as Python?
1 parent 69d1fd2 commit 2683ac7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/distutils/msvccompiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def __init__ (self,
233233
self.mc = "mc.exe"
234234

235235
self.preprocess_options = None
236-
self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' ]
236+
self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' ,
237+
'/DNDEBUG']
237238
self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GX',
238239
'/Z7', '/D_DEBUG']
239240

0 commit comments

Comments
 (0)