diff --git a/tensorflow/core/BUILD b/tensorflow/core/BUILD index 927a3dd2b73..594c50bc946 100644 --- a/tensorflow/core/BUILD +++ b/tensorflow/core/BUILD @@ -2306,6 +2306,7 @@ cc_library( "//tensorflow/core/platform:platform_port", "//tensorflow/core/platform:platform_strings", "//tensorflow/core/platform:prefetch", + "//tensorflow/core/platform:protobuf_internal", "//tensorflow/core/platform:regexp", "//tensorflow/core/platform:scanner", "//tensorflow/core/platform:setround", diff --git a/tensorflow/core/platform/BUILD b/tensorflow/core/platform/BUILD index 7fd3f0fa8ad..bbfca14e611 100644 --- a/tensorflow/core/platform/BUILD +++ b/tensorflow/core/platform/BUILD @@ -7,7 +7,7 @@ # # The libraries in this package are not allowed to have ANY dependencies # to any TensorFlow code outside this package. - +load("//tensorflow/core/platform:default/build_config_root.bzl", "if_static") load( "//tensorflow/core/platform:default/build_config.bzl", "tf_additional_lib_hdrs", @@ -17,7 +17,6 @@ load( "tf_additional_proto_hdrs", "tf_additional_tensor_coding_deps", "tf_additional_test_srcs", - "tf_platform_srcs", "tf_protobuf_compiler_deps", "tf_protobuf_deps", ) @@ -385,8 +384,7 @@ cc_library( ":protobuf", ":types", "//tensorflow/core/lib/core:errors", - "@com_google_protobuf//:protobuf", - ], + ] + if_static(["@com_google_protobuf//:protobuf"]), ) cc_library(