Skip to content

Collect toolchain files by action in one pass - #872

Open
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/collect-toolchain-files-by-action
Open

Collect toolchain files by action in one pass#872
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/collect-toolchain-files-by-action

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Construct ToolchainConfigInfo.files by initializing each configured action with its tool runfiles, then walking ArgsListInfo.by_action for the toolchain args and each feature once. This avoids repeated action lookups while preserving the per-action file sets.

Tested: bazel test //tests/rule_based_toolchain/toolchain_config:test_suite (12 tests passed).

Walk each ArgsListInfo.by_action once and append its files only for configured tool actions. Preserve each tool’s runfiles and the resulting per-action depsets.

Tested: bazel test //tests/rule_based_toolchain/toolchain_config:test_suite
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