Internal-only changes

Change: 148915145
This commit is contained in:
Pete Warden 2017-03-01 12:09:35 -08:00 committed by TensorFlower Gardener
parent 5902c73c9c
commit 03f1ff73c7
4 changed files with 15 additions and 5 deletions

View File

@ -107,6 +107,7 @@ load(
"tf_kernel_tests_linkstatic",
"tf_additional_cloud_op_deps",
"tf_additional_cloud_kernel_deps",
"tf_lib_proto_parsing_deps",
)
load(
"//tensorflow/core:platform/default/build_config_root.bzl",
@ -221,10 +222,7 @@ cc_library(
"platform/types.h",
] + glob(tf_additional_proto_hdrs()) + glob(tf_env_time_hdrs()),
copts = tf_copts(),
deps = [
":protos_all_cc",
"//tensorflow/core/platform/default/build_config:proto_parsing",
],
deps = tf_lib_proto_parsing_deps(),
)
cc_library(
@ -446,7 +444,9 @@ cc_library(
"framework/type_traits.h",
"platform/default/dynamic_annotations.h",
"platform/default/integral_types.h",
"platform/default/logging.h",
"platform/default/mutex.h",
"platform/default/protobuf.h",
"platform/default/thread_annotations.h",
"platform/dynamic_annotations.h",
"platform/macros.h",

View File

@ -241,3 +241,9 @@ def tf_additional_cloud_kernel_deps():
#if WITH_GCP_SUPPORT:
# deps = if_not_mobile(["//tensorflow/core:cloud_ops_op_lib"])
return deps
def tf_lib_proto_parsing_deps():
return [
":protos_all_cc",
"//tensorflow/core/platform/default/build_config:proto_parsing",
]

View File

@ -25,7 +25,7 @@ limitations under the License.
// TensorFlow code should use the ::tensorflow::protobuf namespace to
// refer to all protobuf APIs.
#if defined(PLATFORM_GOOGLE)
#if defined(PLATFORM_GOOGLE) && !defined(USE_DEFAULT_PROTOBUF)
#include "tensorflow/core/platform/google/protobuf.h"
#else
#include "tensorflow/core/platform/default/protobuf.h"

View File

@ -48,6 +48,10 @@ cc_library(
"-lm",
"-lpthread",
],
"//tensorflow:ios": [
"-lm",
"-lpthread",
],
"//conditions:default": [
"-lm",
"-lpthread",