summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-05-14 11:30:51 -0700
committerJoshua Haberman <jhaberman@gmail.com>2019-05-14 11:30:51 -0700
commite04216eb0fb70cbd1371a942aaeaf90b1f1b5cd8 (patch)
treeb3271e6877f81be05d4646b4edd2d8e42ce43a8d
parentc0a1afa16f5c29fc4edb229efa5b6682b69ebd4b (diff)
More Blaze fixes.
-rw-r--r--BUILD2
-rw-r--r--CMakeLists.txt1
-rw-r--r--build_defs.bzl11
3 files changed, 10 insertions, 4 deletions
diff --git a/BUILD b/BUILD
index 4d3cdc8..2b99cf7 100644
--- a/BUILD
+++ b/BUILD
@@ -242,7 +242,7 @@ cc_library(
cc_test(
name = "test_varint",
srcs = [
- "tests/pb/test_varint.c" +
+ "tests/pb/test_varint.c",
"upb/pb/varint.int.h",
],
copts = COPTS,
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1ff4788..24e0b54 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,6 +98,7 @@ add_library(handlers
upb/sink.h)
target_link_libraries(handlers
reflection
+ table
upb)
add_library(upb_pb
upb/pb/compile_decoder.c
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,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback