mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Upgrading protobuf has failed in https://github.com/tensorflow/tensorflow/pull/52853, this change is to work around issues in older protobuf versions for upgrading Bazel by cherry-picking two protobuf commits. See https://github.com/bazelbuild/bazel/issues/12887#issuecomment-768684625 Commit 1: [bazel] Use proto_library targets to exclude WKPs from code-gen This prepares protobuf for a future release of Bazel which will make `ProtoInfo` mandatory for `proto_lang_toolchain.blacklisted_protos`. Commit 2: [bazel] Remove bootstrap hack from cc_proto_library and add interop with proto_library Bazel had a native `cc_proto_library` for more than 2 years now. This is the first step towards removing that rule from the Protobuf repo. PiperOrigin-RevId: 412892006 Change-Id: I424974d3f5be371d6b83d62fc24683cd84ff2585