diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-05-14 11:30:51 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2019-05-14 11:30:51 -0700 |
commit | e04216eb0fb70cbd1371a942aaeaf90b1f1b5cd8 (patch) | |
tree | b3271e6877f81be05d4646b4edd2d8e42ce43a8d /build_defs.bzl | |
parent | c0a1afa16f5c29fc4edb229efa5b6682b69ebd4b (diff) |
More Blaze fixes.
Diffstat (limited to 'build_defs.bzl')
-rw-r--r-- | build_defs.bzl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/build_defs.bzl b/build_defs.bzl index d30fdc5..fc2c0a4 100644 --- a/build_defs.bzl +++ b/build_defs.bzl @@ -356,7 +356,7 @@ def _upb_proto_rule_impl(ctx): def _upb_proto_aspect_impl(target, ctx): proto_info = target[ProtoInfo] files = _compile_upb_protos(ctx, proto_info, proto_info.direct_sources, ctx.attr._ext) - deps = ctx.rule.attr.deps + [ctx.attr._upb] + deps = ctx.rule.attr.deps + ctx.attr._upb dep_ccinfos = [dep[CcInfo] for dep in deps if CcInfo in dep] dep_ccinfos += [dep[_WrappedCcInfo].cc_info for dep in deps if _WrappedCcInfo in dep] cc_info = cc_library_func( @@ -394,7 +394,7 @@ _upb_proto_library_aspect = aspect( "_cc_toolchain": attr.label( default = "@bazel_tools//tools/cpp:current_cc_toolchain", ), - "_upb": attr.label(default = ":upb"), + "_upb": attr.label_list(default = [":upb"]), "_ext": attr.string(default = ".upb"), }), implementation = _upb_proto_aspect_impl, @@ -431,7 +431,12 @@ _upb_proto_reflection_library_aspect = aspect( "_cc_toolchain": attr.label( default = "@bazel_tools//tools/cpp:current_cc_toolchain", ), - "_upb": attr.label(default = ":reflection"), + "_upb": attr.label_list( + default = [ + ":upb", + ":reflection", + ], + ), "_ext": attr.string(default = ".upbdefs"), }), implementation = _upb_proto_aspect_impl, |