diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2019-07-23 00:05:43 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2019-07-23 00:20:21 +0200 |
commit | a2013f0fc21300768b87714d8a4db0a5cd845028 (patch) | |
tree | 1afe90f7f32d257fadc34b55f1596b6b85eae4f9 /bazel | |
parent | 4d8af5e4b998fccc8c9a5d5505866f4722f64954 (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.bzl | 5 |
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, |