[Python-bugs-list] [ python-Bugs-489052 ] define NDEBUG for release builds

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Dec 2001 12:56:38 -0800


Bugs item #489052, was opened at 2001-12-04 12:13
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489052&group_id=5470

Category: Build
Group: Python 2.2
Status: Open
Resolution: None
Priority: 7
Submitted By: Tim Peters (tim_one)
>Assigned to: Jack Jansen (jackjansen)
Summary: define NDEBUG for release builds

Initial Comment:
NDEBUG should be defined on the command line during 
release builds of Python, so that assert() statements 
go away.  We tried defining it in Python.h, but that 
interferes with extensions linking Python.h (and 
created real problems for Robin Dunn).

The Windows build already does this.

The Linux build needs it, and assigned to Fred for 
that part.

Fred, please assign to jackjansen when you're done, so 
he can consider the Mac build.

Any other build need special treatment?

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-12-04 12:56

Message:
Logged In: YES 
user_id=3066

The Unix portion of this is fixed in configure.in revision
1.284.  Passing to Jack for Mac OS magic.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489052&group_id=5470