summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bazel/upb_proto_library.bzl5
1 files changed, 4 insertions, 1 deletions
diff --git a/bazel/upb_proto_library.bzl b/bazel/upb_proto_library.bzl
index 528d34b..cc6bcff 100644
--- a/bazel/upb_proto_library.bzl
+++ b/bazel/upb_proto_library.bzl
@@ -175,7 +175,10 @@ def _upb_proto_rule_impl(ctx):
"_WrappedGeneratedSrcsInfo (aspect should have handled this).")
cc_info = dep[_WrappedCcInfo].cc_info
srcs = dep[_WrappedGeneratedSrcsInfo].srcs
- lib = cc_info.linking_context.libraries_to_link[0]
+ if (type(cc_info.linking_context.libraries_to_link) == "list"):
+ lib = cc_info.linking_context.libraries_to_link[0]
+ else:
+ lib = cc_info.linking_context.libraries_to_link.to_list()[0]
files = _filter_none([
lib.static_library,
lib.pic_static_library,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback