Patch ICU to always look for its data statically.

Fixes #23655

PiperOrigin-RevId: 238134165
This commit is contained in:
Nick Hamatake 2019-03-12 17:36:14 -07:00 committed by TensorFlower Gardener
parent 93ac1653be
commit 025aa34d77

View File

@ -1,3 +1,18 @@
--- /icu4c/source/common/unicode/uconfig.h 2018-06-19 22:34:56.000000000 -0700
+++ /ice4c/source/common/unicode/uconfig.h.new 2019-03-12 10:12:35.896095657 -0700
@@ -55,6 +55,11 @@
#include "uconfig_local.h"
#endif
+// Tensorflow is statically linked on all platforms.
+#ifndef U_STATIC_IMPLEMENTATION
+#define U_STATIC_IMPLEMENTATION
+#endif
+
/**
* \def U_DEBUG
* Determines whether to include debugging code.
--- /icu4c/source/common/udata.cpp.old 2018-06-19 22:34:56.000000000 -0700 --- /icu4c/source/common/udata.cpp.old 2018-06-19 22:34:56.000000000 -0700
+++ /icu4c/source/common/udata.cpp 2018-10-19 14:26:09.778950855 -0700 +++ /icu4c/source/common/udata.cpp 2018-10-19 14:26:09.778950855 -0700
@@ -18,15 +18,15 @@ @@ -18,15 +18,15 @@