Force ICU to look for its data statically. This is required for Windows 10

builds. Patch suggested by github.com/cielavenir.

Fixes #23655

PiperOrigin-RevId: 229464102
This commit is contained in:
Nick Hamatake 2019-01-15 16:34:32 -08:00 committed by TensorFlower Gardener
parent 5b2fa842fa
commit 7e090f6a54
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,9 @@ limitations under the License.
#include "unicode/uscript.h" // TF:icu
#include "tensorflow/core/framework/op_kernel.h"
// ICU codemap data is linked statically.
#define U_STATIC_IMPLEMENTATION
namespace tensorflow {
class UnicodeScriptOp : public OpKernel {

View File

@ -44,6 +44,7 @@ cc_library(
]),
copts = [
"-DU_COMMON_IMPLEMENTATION",
"-DU_STATIC_IMPLEMENTATION",
"-DU_HAVE_STD_ATOMICS",
] + select({
":android": [