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 4d43c13Copy full SHA for 4d43c13
cpython-unix/build-cpython.sh
@@ -427,7 +427,11 @@ 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
432
+ # versions.
433
+ # See https://docs.python.org/3.14/using/configure.html#cmdoption-with-lto
434
+ CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-lto=full"
435
436
437
# Python 3.11 introduces a --with-build-python to denote the host Python.
0 commit comments