summarylogtreecommitdiffstats
path: root/gcc3.diff
diff options
context:
space:
mode:
authormirh2019-12-15 16:54:37 +0100
committermirh2019-12-15 16:54:37 +0100
commite81f45232fd0f830170b5996bb79e47bbff0e3d8 (patch)
tree198f41473dea3e192683f58228858ce0b81404cc /gcc3.diff
parenta590ee0cb845bf8f5215dad92bdba8d50939b2e0 (diff)
downloadaur-e81f45232fd0f830170b5996bb79e47bbff0e3d8.tar.gz
Fix bazel >0.17, GCC9 and python 3.7 situation.
Diffstat (limited to 'gcc3.diff')
-rw-r--r--gcc3.diff31
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc3.diff b/gcc3.diff
new file mode 100644
index 000000000000..d729f4d389b9
--- /dev/null
+++ b/gcc3.diff
@@ -0,0 +1,31 @@
+diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
+index c4f6bd5ebd..a95ba8070f 100644
+--- a/tensorflow/workspace.bzl
++++ b/tensorflow/workspace.bzl
+@@ -370,6 +370,7 @@ def tf_workspace(path_prefix="", tf_repo_name=""):
+ urls = PROTOBUF_urls,
+ sha256 = PROTOBUF_sha256,
+ strip_prefix = PROTOBUF_strip_prefix,
++ patch_file = clean_dep("//third_party/protobuf:gcc9.patch"),
+ )
+
+ # We need to import the protobuf library under the names com_google_protobuf
+diff --git a/third_party/protobuf/gcc9.patch b/third_party/protobuf/gcc9.patch
+new file mode 100644
+index 0000000000..fbef873a85
+--- /dev/null
++++ b/third_party/protobuf/gcc9.patch
+@@ -0,0 +1,13 @@
++diff --git a/BUILD b/BUILD
++index 19f07c5..25adc4b 100644
++--- a/BUILD
+++++ b/BUILD
++@@ -35,7 +35,7 @@ COPTS = select({
++ "-Wno-sign-compare",
++ "-Wno-unused-function",
++ # Prevents ISO C++ const string assignment warnings for pyext sources.
++- "-Wno-writable-strings",
+++ "-Wno-write-strings",
++ ],
++ })
++