Internal-only changes
Change: 148915145
This commit is contained in:
parent
5902c73c9c
commit
03f1ff73c7
@ -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",
|
||||
|
@ -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",
|
||||
]
|
||||
|
@ -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"
|
||||
|
@ -48,6 +48,10 @@ cc_library(
|
||||
"-lm",
|
||||
"-lpthread",
|
||||
],
|
||||
"//tensorflow:ios": [
|
||||
"-lm",
|
||||
"-lpthread",
|
||||
],
|
||||
"//conditions:default": [
|
||||
"-lm",
|
||||
"-lpthread",
|
||||
|
Loading…
Reference in New Issue
Block a user