SIGN IN SIGN UP

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.
K
Ken Jin committed
bc0b94b30c9d65ba550daee2c2ef20035defd980
Parent: 07b8d31
Committed by GitHub <noreply@github.com> on 4/11/2025, 8:06:05 AM