Commit 45d92aea authored by cgrushko's avatar cgrushko Committed by GitHub

Add a proto_lang_toolchain() for cc_proto_library

Bazel's built-in cc_proto_library rule uses a proto_lang_toolchain to learn how to invoke proto-compiler.
To use Bazel's cc_proto_library, add the following to your project's WORKSPACE file:

local_repository(
  name = "com_google_protobuf_cc",
  path = "/path/to/protobuf-distribution/"
)
parent 6b60dddb
......@@ -749,3 +749,10 @@ internal_protobuf_py_tests(
],
deps = [":python_tests"],
)
proto_lang_toolchain(
name = "cc_toolchain",
runtime = ":protobuf",
command_line = "--cpp_out=$(OUT)",
visibility = ["//visibility:public"],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment