Skip to content

Commit

Permalink
Fix owner label
Browse files Browse the repository at this point in the history
The code now matches native implementation.

Those owner labels are used by cc_shared_library. If target names aren't used, several libraries get dropped by that rule.

PiperOrigin-RevId: 722645525
Change-Id: Id72224a9dbb129aa91bc1c662f24c8e9651171a1
  • Loading branch information
comius authored and copybara-github committed Feb 3, 2025
1 parent 327ce29 commit cbf1148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def create_linking_context_from_compilation_outputs(

linker_input = cc_common_internal.create_linker_input(
# TODO(b/331164666): remove cheat, we always produce a file, file.owner gives us a label
owner = cc_internal.actions2ctx_cheat(actions).label,
owner = cc_internal.actions2ctx_cheat(actions).label.same_package_label(name),
libraries = depset([cc_linking_outputs.library_to_link]) if cc_linking_outputs.library_to_link else None,
user_link_flags = user_link_flags,
additional_inputs = additional_inputs,
Expand Down

0 comments on commit cbf1148

Please sign in to comment.