aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-26 17:57:49 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-26 18:02:02 -0800
commit620c36be9a7b07501374eb1ee5f298ca9e0a560d (patch)
treec8888be83d9e6a3a4d0e49dc73a9a573e5204f50
parent704361ad3650ebc891167adc41c459ca93392060 (diff)
Remove protobuf patch that was installed to resolve #8394. It appears to not be necessary any longer.
PiperOrigin-RevId: 183474194
-rw-r--r--tensorflow/workspace.bzl5
-rw-r--r--third_party/protobuf/add_noinlines.patch30
2 files changed, 0 insertions, 35 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index f7d9075032..26abebe2de 100644
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -357,11 +357,6 @@ def tf_workspace(path_prefix="", tf_repo_name=""):
],
sha256 = "e178a25c52efcb6b05988bdbeace4c0d3f2d2fe5b46696d1d9898875c3803d6a",
strip_prefix = "protobuf-b04e5cba356212e4e8c66c61bbe0c3a20537c5b9",
- # TODO: remove patching when tensorflow stops linking same protos into
- # multiple shared libraries loaded in runtime by python.
- # This patch fixes a runtime crash when tensorflow is compiled
- # with clang -O2 on Linux (see https://github.com/tensorflow/tensorflow/issues/8394)
- patch_file = str(Label("//third_party/protobuf:add_noinlines.patch")),
)
# We need to import the protobuf library under the names com_google_protobuf
diff --git a/third_party/protobuf/add_noinlines.patch b/third_party/protobuf/add_noinlines.patch
deleted file mode 100644
index af74798f06..0000000000
--- a/third_party/protobuf/add_noinlines.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -u -r a/src/google/protobuf/compiler/cpp/cpp_file.cc b/src/google/protobuf/compiler/cpp/cpp_file.cc
---- a/src/google/protobuf/compiler/cpp/cpp_file.cc 2017-02-10 23:55:34.000000000 +0100
-+++ b/src/google/protobuf/compiler/cpp/cpp_file.cc 2017-03-21 13:41:46.931979154 +0100
-@@ -557,7 +557,7 @@
- " $metadata$, $enum_descriptors$, $service_descriptors$);\n"
- "}\n"
- "\n"
-- "void protobuf_AssignDescriptorsOnce() {\n"
-+ "GOOGLE_ATTRIBUTE_NOINLINE void protobuf_AssignDescriptorsOnce() {\n"
- " static GOOGLE_PROTOBUF_DECLARE_ONCE(once);\n"
- " ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);\n"
- "}\n"
-@@ -656,7 +656,7 @@
- printer->Print(
- "}\n"
- "\n"
-- "void InitDefaults() {\n"
-+ "GOOGLE_ATTRIBUTE_NOINLINE void InitDefaults() {\n"
- " static GOOGLE_PROTOBUF_DECLARE_ONCE(once);\n"
- " ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);\n"
- "}\n");
-@@ -737,7 +737,7 @@
- printer->Print(
- "}\n"
- "\n"
-- "void AddDescriptors() {\n"
-+ "GOOGLE_ATTRIBUTE_NOINLINE void AddDescriptors() {\n"
- " static GOOGLE_PROTOBUF_DECLARE_ONCE(once);\n"
- " ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);\n"
- "}\n");