aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Abhijit Karmarkar <awk@google.com>2018-05-07 10:27:50 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-07 16:32:37 -0700
commita0bdd4bcfbf300cf36c753591a6febb55143dc06 (patch)
tree5fd4a1adccb4aa8d872d008f386bab1738c61044
parentadcfdfcfec78b2021320d99c3543a054b470f56f (diff)
Internal Change
PiperOrigin-RevId: 195681946
-rw-r--r--tensorflow/core/platform/default/build_config.bzl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tensorflow/core/platform/default/build_config.bzl b/tensorflow/core/platform/default/build_config.bzl
index 107c38114b..f6e09ef094 100644
--- a/tensorflow/core/platform/default/build_config.bzl
+++ b/tensorflow/core/platform/default/build_config.bzl
@@ -335,6 +335,8 @@ def tf_proto_library_cc(name, srcs = [], has_services = None,
name = cc_name,
deps = cc_deps + ["@protobuf_archive//:protobuf_headers"] +
if_static([name + "_cc_impl"]),
+ testonly = testonly,
+ visibility = visibility,
)
native.cc_library(
name = cc_name + "_impl",
@@ -378,8 +380,10 @@ def tf_proto_library_py(name, srcs=[], protodeps=[], deps=[], visibility=[],
)
native.py_library(
name = py_name,
- deps = py_deps + ["@protobuf_archive//:protobuf_python"])
-
+ deps = py_deps + ["@protobuf_archive//:protobuf_python"],
+ testonly = testonly,
+ visibility = visibility,
+ )
return
py_proto_library(