diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-09-25 11:31:39 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-09-25 11:35:28 -0700 |
commit | 2c6cecd00ed2623dc53ad5fd5a9e4e77957f3407 (patch) | |
tree | 2ade5f8e5a215b530c44b55318a59627d9122ee6 /tensorflow/tools/proto_text | |
parent | 01620694d85653d8cc836db17945b0e349838b8c (diff) |
Fix build errors for iOS.
PiperOrigin-RevId: 169936203
Diffstat (limited to 'tensorflow/tools/proto_text')
-rw-r--r-- | tensorflow/tools/proto_text/BUILD | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tensorflow/tools/proto_text/BUILD b/tensorflow/tools/proto_text/BUILD index ca62ee2fdf..39c4aac1e8 100644 --- a/tensorflow/tools/proto_text/BUILD +++ b/tensorflow/tools/proto_text/BUILD @@ -19,6 +19,7 @@ exports_files([ load( "//tensorflow:tensorflow.bzl", + "if_ios", "tf_generate_proto_text_sources", "tf_cc_test", ) @@ -32,18 +33,20 @@ load( cc_binary( name = "gen_proto_text_functions", srcs = ["gen_proto_text_functions.cc"], + copts = if_ios(["-DGOOGLE_LOGGING"]), visibility = ["//tensorflow:internal"], deps = [ ":gen_proto_text_functions_lib", - "//tensorflow/core:lib_proto_parsing", "@protobuf_archive//:protobuf", - ], + "//tensorflow/core:lib_proto_parsing", + ] + if_ios(["//tensorflow/core/platform/default/build_config:logging"]), ) cc_library( name = "gen_proto_text_functions_lib", srcs = ["gen_proto_text_functions_lib.cc"], hdrs = ["gen_proto_text_functions_lib.h"], + copts = if_ios(["-DGOOGLE_LOGGING"]), linkopts = select({ "//tensorflow:windows": [], "//tensorflow:windows_msvc": [], @@ -63,7 +66,7 @@ cc_library( }), deps = [ "//tensorflow/core:lib_proto_parsing", - ], + ] + if_ios(["//tensorflow/core/platform/default/build_config:logging"]), ) tf_proto_library_cc( |