Skip to content

Commit

Permalink
Add regular library in interface_library group of cc_shared_library
Browse files Browse the repository at this point in the history
The regular library was already accessible via the main_shared_library_output group but making it also available in interface_library when there is no actual interface library available is inline with the current behavior of cc_binary.

RELNOTES:none
PiperOrigin-RevId: 455497044
Change-Id: Ia80fed253e0c79584f23f08eb25b930362e3ff02
  • Loading branch information
oquenchil authored and copybara-github committed Jun 16, 2022
1 parent 4b7f339 commit d7a9a37
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ def _cc_shared_library_impl(ctx):
interface_library.append(linking_outputs.library_to_link.resolved_symlink_interface_library)
elif linking_outputs.library_to_link.interface_library != None:
interface_library.append(linking_outputs.library_to_link.interface_library)
else:
interface_library = library

return [
DefaultInfo(
Expand Down

0 comments on commit d7a9a37

Please sign in to comment.