mirror of
https://github.com/python/cpython.git
synced 2025-11-18 18:31:56 +00:00
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.
This commit is contained in:
parent
c81a5e6b5b
commit
49f51deeef
3 changed files with 13 additions and 0 deletions
5
configure
generated
vendored
5
configure
generated
vendored
|
|
@ -9414,6 +9414,11 @@ then :
|
|||
PYDEBUG_CFLAGS="-Og"
|
||||
fi
|
||||
|
||||
# gh-120688: WASI uses -O3 in debug mode to support more recursive calls
|
||||
if test "$ac_sys_system" = "WASI"; then
|
||||
PYDEBUG_CFLAGS="-O3"
|
||||
fi
|
||||
|
||||
# tweak OPT based on compiler and platform, only if the user didn't set
|
||||
# it on the command line
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue