Use proto_library in proto_lang_toolchain.blacklisted_protos
Cherry-pick of:
Partial commit for third_party/*, see
@@ -827,7 +827,7 @@ proto_lang_toolchain(
command_line = "--cpp_out=$(OUT)",
runtime = ":protobuf",
visibility = ["//visibility:public"],
- blacklisted_protos = [":_internal_wkt_protos_genrule"],
+ blacklisted_protos = [proto + "_proto" for proto in WELL_KNOWN_PROTO_MAP.keys()],
)
proto_lang_toolchain(
