From b75027a21dec9232aef72df71632699b656f43f6 Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 3 Mar 2022 08:31:57 +0100 Subject: [PATCH] Fix precompiled libs not in runfiles of cc_shared_library --- .../common/cc/experimental_cc_shared_library.bzl | 6 ++++++ 1 file changed, 6 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 7a8c59d4eaa44a..4708a8490fe4f7 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 @@ -501,6 +501,12 @@ def _cc_shared_library_impl(ctx): else: library.append(linking_outputs.library_to_link.dynamic_library) + precompiled_only_dynamic_libraries_runfiles = [] + for precompiled_dynamic_library in precompiled_only_dynamic_libraries: + precompiled_only_dynamic_libraries_runfiles.append(precompiled_dynamic_library.dynamic_library) + if precompiled_dynamic_library.resolved_symlink_dynamic_library != None: + precompiled_only_dynamic_libraries_runfiles.append(precompiled_dynamic_library.resolved_symlink_dynamic_library) + return [ DefaultInfo( files = depset(library),