Skip to content

Compose C++ toolchain variables in Starlark - #828

Open
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-combine-cc-toolchain-variables
Open

Compose C++ toolchain variables in Starlark#828
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-combine-cc-toolchain-variables

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Keep C++ compile and ThinLTO build variables in Starlark dictionaries until native action registration requires CcToolchainVariables. This removes all 12 _cc_internal.combine_cc_toolchain_variables calls while preserving parent-variable overrides, duplicate-variable errors, public return types, and action-template behavior.

Validation: 127 C++ common, binary, ThinLTO, and compile-variable analysis tests passed, including new override and duplicate-variable tests. Stable analysis heap increased 0.44% on the 127-test workload.

@dzbarsky
dzbarsky marked this pull request as ready for review August 2, 2026 22:56
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.

1 participant