Files
tensorflow/third_party/protobuf/protobuf.patch
A. Unique TensorFlower 508f76b1d9 Upgrade protobuf to 3.8.0
The custom commit contains a fix to make protobuf.bzl compatible with Bazel 0.26 or later version.

Also fix WORKSPACE file to make sure tf_workspace() always takes priority over dependency definitions of other repositories.

PiperOrigin-RevId: 253970221
2019-06-19 04:19:29 -07:00

23 lines
711 B
Diff

diff --git a/BUILD b/BUILD
index 2fb26050..c2744d5b 100644
--- a/BUILD
+++ b/BUILD
@@ -19,7 +19,7 @@ config_setting(
# ZLIB configuration
################################################################################
-ZLIB_DEPS = ["@zlib//:zlib"]
+ZLIB_DEPS = ["@zlib_archive//:zlib"]
################################################################################
# Protobuf Runtime Library
@@ -218,7 +218,7 @@ cc_library(
# TODO(keveman): Remove this target once the support gets added to Bazel.
cc_library(
name = "protobuf_headers",
- hdrs = glob(["src/**/*.h"]),
+ hdrs = glob(["src/**/*.h", "src/**/*.inc"]),
includes = ["src/"],
visibility = ["//visibility:public"],
)