The LTO flag is passed in as ``--with-lto` https://github.com/astral-sh/python-build-standalone/blob/aa430e23e31fdbc612938d3a748974a60e6ff1f9/cpython-unix/build-cpython.sh#L430 However, on version 3.12 and higher, Clang defaults to the ThinLTO policy https://docs.python.org/3.14/using/configure.html#cmdoption-with-lto This leaves quite a bit of perf on the table for macOS on 3.13 and higher https://github.com/python/cpython/issues/122580 The fix should be to pass it `--with-lto=full` on 3.12 and higher.