← 输入框|github.com|刷新
Skip to content

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

Open
nascheme wants to merge 1 commit into
python:3.15from
nascheme:backport-eb7cd6e-3.15
Open

nascheme wants to merge 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review build The build process and cross-build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant