Skip to content

[3.15] gh-161821: Fall back to lld for Clang LTO builds (gh-161822) - #162786

Merged
hugovk merged 1 commit into
python:3.15from
nascheme:backport-eb7cd6e-3.15
Dec 4, 2026
Merged

hugovk merged 1 commit into
python:3.15from
nascheme:backport-eb7cd6e-3.15

Conversation

@nascheme

@nascheme nascheme commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Clang LTO with a GNU linker needs the LLVMgold.so plugin, which some packages (e.g. LLVM for Debian 13) don't ship. When using Clang with --with-lto on non-macOS platforms, configure now test-links an LTO program and, if that fails, retries with -fuse-ld=lld.

(cherry picked from commit eb7cd6e)

…gh-161822)

Clang LTO with a GNU linker needs the LLVMgold.so plugin, which some
packages (e.g. LLVM for Debian 13) don't ship.  When using Clang with
--with-lto on non-macOS platforms, configure now test-links an LTO
program and, if that fails, retries with -fuse-ld=lld.

(cherry picked from commit eb7cd6e)
@read-the-docs-community

Copy link
Copy Markdown

@nascheme
nascheme marked this pull request as ready for review November 28, 2026 03:55
@hugovk
hugovk merged commit a037fd3 into python:3.15 Dec 4, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build The build process and cross-build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants