Skip to content

Commit

Permalink
Fix precompiled libs not in runfiles of cc_shared_library (#14943)
Browse files Browse the repository at this point in the history
  • Loading branch information
oquenchil authored Mar 3, 2022
1 parent c1ecca2 commit c45838b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c45838b

Please sign in to comment.