Skip to content

Starlarkify dynamic_library_soname#762

Open
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-dynamic-library-soname
Open

Starlarkify dynamic_library_soname#762
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-dynamic-library-soname

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace _cc_internal.dynamic_library_soname with a Starlark implementation. dynamic_library_soname preserves the output basename when requested; otherwise it applies the configuration mnemonic's ST- suffix and the same path escaping used by cc_common.escape_label to the output's root-relative path.

The configuration mnemonic is read from the output artifact root, which preserves link outputs created for transitioned configurations without adding another configuration argument to the link functions.

Compute the dynamic library SONAME from the output artifact root and root-relative path. Reuse the path escaping used by cc_common.escape_label and cover preserved and transitioned output names.
@dzbarsky dzbarsky changed the title [codex] Starlarkify dynamic_library_soname Starlarkify dynamic_library_soname Jun 19, 2026
@dzbarsky dzbarsky marked this pull request as ready for review June 19, 2026 13:38
@lilygorsheneva

Copy link
Copy Markdown
Collaborator

discussion in #763

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