Skip to content

Use Starlark tuples for C++ module-map headers - #809

Open
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-module-map-sequences
Open

Use Starlark tuples for C++ module-map headers#809
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-module-map-sequences

Conversation

@dzbarsky

Copy link
Copy Markdown
Contributor

Store private module-map callback sequences as immutable Starlark tuples instead of calling _cc_internal.freeze. The _ModuleMapInfo callback preserves header ordering, tree-artifact expansion, and Args.map_each behavior while eliminating the module's Java-backed cc_internal dependency.

Add a configured-target regression test verifying that generated header directories are included in the CppModuleMap action.

Validation: buildifier -mode=check and seven passing C++ module-analysis tests, including the new generated-tree-header test.

@dzbarsky
dzbarsky marked this pull request as ready for review July 31, 2026 18:24
@lilygorsheneva

Copy link
Copy Markdown
Collaborator

as with #812 , waiting until we have spare time to run benchmarks.

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