Commit 3d6c7843 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #23445: pydebug builds now use "gcc -Og" where possible, to make the...

Issue #23445: pydebug builds now use "gcc -Og" where possible, to make the resulting executable faster.
parent 22fabe21
...@@ -17,6 +17,12 @@ Library ...@@ -17,6 +17,12 @@ Library
- Issue #23361: Fix possible overflow in Windows subprocess creation code. - Issue #23361: Fix possible overflow in Windows subprocess creation code.
Build
-----
- Issue #23445: pydebug builds now use "gcc -Og" where possible, to make
the resulting executable faster.
What's New in Python 3.4.3rc1? What's New in Python 3.4.3rc1?
============================== ==============================
......
...@@ -6283,7 +6283,11 @@ then ...@@ -6283,7 +6283,11 @@ then
if test "$Py_DEBUG" = 'true' ; then if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for # Optimization messes up debuggers, so turn it off for
# debug builds. # debug builds.
if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
OPT="-g -Og -Wall $STRICT_PROTO"
else
OPT="-g -O0 -Wall $STRICT_PROTO" OPT="-g -O0 -Wall $STRICT_PROTO"
fi
else else
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
fi fi
......
...@@ -1119,7 +1119,11 @@ then ...@@ -1119,7 +1119,11 @@ then
if test "$Py_DEBUG" = 'true' ; then if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for # Optimization messes up debuggers, so turn it off for
# debug builds. # debug builds.
if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
OPT="-g -Og -Wall $STRICT_PROTO"
else
OPT="-g -O0 -Wall $STRICT_PROTO" OPT="-g -O0 -Wall $STRICT_PROTO"
fi
else else
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment