We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa430e2 commit 61fcdd7Copy full SHA for 61fcdd7
cpython-unix/build-cpython.sh
@@ -427,7 +427,9 @@ if [ -n "${CPYTHON_OPTIMIZED}" ]; then
427
fi
428
429
if [ -n "${CPYTHON_LTO}" ]; then
430
- CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-lto"
+ # On Python 3.12 and 3.13, `--with-lto` enables thinLTO by default, while on other versions it
431
+ # enables full LTO. We prefer runtime performance over build time, so force full on all versions.
432
+ CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-lto=full"
433
434
435
# Python 3.11 introduces a --with-build-python to denote the host Python.
0 commit comments