Skip to content

Use Starlark tuples for extra link-time libraries - #812

Open
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-extra-link-library-collections
Open

Use Starlark tuples for extra link-time libraries#812
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-extra-link-library-collections

Conversation

@dzbarsky

Copy link
Copy Markdown
Contributor

Replace Java-backed _cc_internal.freeze calls in extra-link-time library grouping and collections with immutable Starlark tuples. Grouping keys remain hashable, constant and depset fields retain their ordering, and empty, singleton, and merged library collections preserve their existing behavior.

Add three focused regression tests covering grouping-key equality, tuple-valued collections, and merged depsets.

Validation: buildifier -mode=check and three passing //tests/cc/common:extra_link_time_library_tests cases.

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

Copy link
Copy Markdown
Collaborator

Looks reasonable and my guess is it'll save memory, but I don't have the time to run benchmarks right now; will take another look when someone has time.

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