Skip to content

Validate extra link-time callbacks with Starlark Args - #827

Open
dzbarsky wants to merge 2 commits into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-check-toplevel
Open

Validate extra link-time callbacks with Starlark Args#827
dzbarsky wants to merge 2 commits into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-check-toplevel

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Validate extra link-time library callbacks with ctx.actions.args().add_all([], map_each = callback) immediately before invocation. Args.add_all performs the same top-level-function check as _cc_internal.check_toplevel, so the C++ Java helper is no longer needed.

Validation: 88 C++ common and binary analysis tests passed, including new tests for top-level and nested callbacks.

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