Define NDEBUG when compiling a release build on Unix.

This is the Unix portion of the fix for SF bug #489052.
This commit is contained in:
Fred Drake 2001-12-04 20:55:47 +00:00
parent 4ed6be7107
commit e1ceaa00dc
2 changed files with 380 additions and 368 deletions

742
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -389,6 +389,12 @@ then
esac esac
fi fi
if test "$Py_DEBUG" = 'true'; then
:
else
OPT="-DNDEBUG $OPT"
fi
# The current (beta) Monterey compiler dies with optimizations # The current (beta) Monterey compiler dies with optimizations
case $ac_sys_system in case $ac_sys_system in
Monterey*) OPT="";; Monterey*) OPT="";;