summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-18 17:35:44 (GMT)
committerGitHub <noreply@github.com>2024-06-18 17:35:44 (GMT)
commit49f51deeef901b677853f00e428cbaeb13ecd2f2 (patch)
tree2c8074dae55811cd6d22b437c016711bc66223a8 /configure
parentc81a5e6b5b7749862d271e7a67f89976069ad2cd (diff)
downloadcpython-49f51deeef901b677853f00e428cbaeb13ecd2f2.zip
cpython-49f51deeef901b677853f00e428cbaeb13ecd2f2.tar.gz
cpython-49f51deeef901b677853f00e428cbaeb13ecd2f2.tar.bz2
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 003f68a..0f7ea7d 100755
--- a/configure
+++ b/configure
@@ -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