From d7a9a375852d6b35b881ca58a425d13fcfb7dd0c Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 16 Jun 2022 16:57:36 -0700 Subject: [PATCH] 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 PiperOrigin-RevId: 455497044 Change-Id: Ia80fed253e0c79584f23f08eb25b930362e3ff02 --- .../builtins_bzl/common/cc/experimental_cc_shared_library.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/starlark/builtins_bzl/common/cc/experimental_cc_shared_library.bzl b/src/main/starlark/builtins_bzl/common/cc/experimental_cc_shared_library.bzl index 56cfd860211aa2..8d9e3686ee56ae 100644 --- a/src/main/starlark/builtins_bzl/common/cc/experimental_cc_shared_library.bzl +++ b/src/main/starlark/builtins_bzl/common/cc/experimental_cc_shared_library.bzl @@ -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(