8000 gh-120688: Build WASI with -O3 in debug mode (#120691) · python/cpython@49f51de · GitHub
[go: up one dir, main page]

Skip to content

Commit 49f51de

Browse files
authored
gh-120688: Build WASI with -O3 in debug mode (#120691)
On WASI in debug mode, Python is now built with compiler flag -O3 instead of -Og, to support more recursive calls.
1 parent c81a5e6 commit 49f51de

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
On WASI in debug mode, Python is now built with compiler flag ``-O3``
2+
instead of ``-Og``, to support more recursive calls. Patch by Victor
3+
Stinner.

configure

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,11 @@ PYDEBUG_CFLAGS="-O0"
22892289
AS_VAR_IF([ac_cv_cc_supports_og], [yes],
22902290
[PYDEBUG_CFLAGS="-Og"])
22912291

2292+
# gh-120688: WASI uses -O3 in debug mode to support more recursive calls
2293+
if test "$ac_sys_system" = "WASI"; then
2294+
PYDEBUG_CFLAGS="-O3"
2295+
fi
2296+
22922297
# tweak OPT based on compiler and platform, only if the user didn't set
22932298
# it on the command line
22942299
AC_SUBST([OPT])

0 commit comments

Comments
 (0)
0