Add explicit dependency on protoc_lib in cc_grpc_library
Required prerequisite for updating bundled gRPC to 1.18.
@@ -19,6 +19,7 @@ proto_filetype = [".proto"]
def cc_grpc_library(name, src):
basename = src[:-len(".proto")]
protoc_label = str(Label("//third_party/protobuf:protoc"))
+ protoc_lib_label = str(Label("//third_party/protobuf:protoc_lib"))
cpp_plugin_label = str(Label("//third_party/grpc:cpp_plugin"))
native.genrule(
name = name + "_codegen",
@@ -38,6 +39,9 @@ def cc_grpc_library(name, src):
name = name,
srcs = [basename + ".grpc.pb.cc", basename + ".pb.cc"],
hdrs = [basename + ".grpc.pb.h", basename + ".pb.h"],
- deps = [str(Label("//third_party/grpc:grpc++_unsecure"))],
+ deps = [
+ str(Label("//third_party/grpc:grpc++_unsecure")),
+ protoc_lib_label,
+ ],
includes = ["."],
)
