aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar John Millikin <john@john-millikin.com>2018-02-24 11:36:49 -0800
committerGravatar John Millikin <john@john-millikin.com>2018-02-24 11:36:49 -0800
commit350b135e233ba607e5cbc08a4f8b824d20f4b9c9 (patch)
treec5b095c6c409838f000e6093a6ea9da095ad1906
parent724f0be33d0eb42055ebe81ce0c8c7bf88ea666c (diff)
Blacklist all WELL_KNOWN_PROTOS from Bazel C++ code generation.
This prevents the Bazel `CcProtoAspect` from generating and linking C++ object code for these files. Without this blacklist, symbols for protobuf types depended on by `libprotobuf` may be defined multiple times and violate the ODR rule. Fixes https://github.com/google/protobuf/issues/4311
-rw-r--r--BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 88d8b807..ee81c759 100644
--- a/BUILD
+++ b/BUILD
@@ -843,6 +843,7 @@ proto_lang_toolchain(
command_line = "--cpp_out=$(OUT)",
runtime = ":protobuf",
visibility = ["//visibility:public"],
+ blacklisted_protos = [":_internal_wkt_protos_genrule"],
)
proto_lang_toolchain(