Skip to content

Starlarkify compute_output_name_prefix_dir#761

Closed
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-compute-output-name-prefix-dir
Closed

Starlarkify compute_output_name_prefix_dir#761
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:codex/starlarkify-compute-output-name-prefix-dir

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace both _cc_internal.compute_output_name_prefix_dir calls with a private Starlark helper. The helper returns non_arc for purposes ending in _non_objc_arc, arc for purposes ending in _objc_arc, and an empty prefix otherwise.

compile() normalizes an unset purpose to an empty string before these calls, so the native helper's configuration-mnemonic fallback was not reachable from either rules_cc caller.

Configured-target coverage verifies that Objective-C ARC and non-ARC sources retain separate output directories.

Select arc and non_arc compile output directories directly from the normalized purpose string. Add configured-target coverage for Objective-C ARC and non-ARC object paths.
@dzbarsky dzbarsky changed the title [codex] Starlarkify compute_output_name_prefix_dir Starlarkify compute_output_name_prefix_dir Jun 19, 2026
@dzbarsky
dzbarsky marked this pull request as ready for review June 19, 2026 00:50
@copybara-service copybara-service Bot closed this in fad3ad3 Jul 2, 2026
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