Skip to content

Read the ThinLTO output root from its declared artifact - #811

Open
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-lto-output-root
Open

Read the ThinLTO output root from its declared artifact#811
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-lto-output-root

Conversation

@dzbarsky

Copy link
Copy Markdown
Contributor

Read the ThinLTO indexing output directory from thinlto_param_file.root.path instead of recovering the rule context through _cc_internal.actions2ctx_cheat. The declared parameter file carries the actual selected output root, including alternate or transitioned configurations, and removing the obsolete call also eliminates cc_internal from lto_indexing_action.bzl.

Validation: buildifier -mode=check cc/private/link/lto_indexing_action.bzl and 88 passing ThinLTO and C++ binary analysis tests.

@dzbarsky
dzbarsky marked this pull request as ready for review July 31, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants