]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132257: Remove -flto-partition=none for Linux LTO builds (GH-132258)
authorKen Jin <kenjin@python.org>
Fri, 11 Apr 2025 08:06:05 +0000 (16:06 +0800)
committerGitHub <noreply@github.com>
Fri, 11 Apr 2025 08:06:05 +0000 (16:06 +0800)
commitbc0b94b30c9d65ba550daee2c2ef20035defd980
tree31454462b3e00838a502f852fb1265f6c4027bad
parent07b8d3117fdbc4e5be55aab0be428c278ec84e12
gh-132257: Remove -flto-partition=none for Linux LTO builds (GH-132258)

Change the default LTO flags on GCC to not pass -flto-partition=none, and allow parallelization of LTO. This has a multiple factor speedup for LTO build times on GCC, with no noticeable loss in performance.

On newer make and newer GCC, this passes the jobserver automatically to GCC (or more like GCC grabs it from the env vars).

On older make, this will have benign warnings about serial compilation. It's safe to ignore them.
Misc/NEWS.d/next/Build/2025-04-08-09-11-32.gh-issue-132257.oZWBV-.rst [new file with mode: 0644]
configure
configure.ac