summaryrefslogtreecommitdiff
path: root/bazel
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2019-07-23 00:05:43 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2019-07-23 00:20:21 +0200
commita2013f0fc21300768b87714d8a4db0a5cd845028 (patch)
tree1afe90f7f32d257fadc34b55f1596b6b85eae4f9 /bazel
parent4d8af5e4b998fccc8c9a5d5505866f4722f64954 (diff)
Trying to be more flexible with the version of bazel we can use here.
Diffstat (limited to 'bazel')
-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