Skip to content

Reuse Starlark default features in CcToolchainInfo - #807

Open
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-remaining-default-features
Open

Reuse Starlark default features in CcToolchainInfo#807
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-remaining-default-features

Conversation

@dzbarsky

Copy link
Copy Markdown
Contributor

Use CcToolchainConfigInfo._default_features_and_action_configs when initializing the C++ toolchain provider. create_cc_toolchain_config_info already computes this ordered list in Starlark, so the remaining CcToolchainFeatures.default_features_and_action_configs() Java call is unnecessary.

Validation: buildifier -mode=check cc/private/rules_impl/cc_toolchain_provider_helper.bzl and 89 passing C++ common, binary, and library analysis tests.

@dzbarsky
dzbarsky marked this pull request as ready for review July 31, 2026 18:22
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