Add regular library in interface_library group of cc_shared_library
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
@@ -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(
