mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
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:
parent
5b2fa842fa
commit
7e090f6a54
|
|
@ -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 {
|
||||
|
|
|
|||
1
third_party/icu/BUILD.bazel
vendored
1
third_party/icu/BUILD.bazel
vendored
|
|
@ -44,6 +44,7 @@ cc_library(
|
|||
]),
|
||||
copts = [
|
||||
"-DU_COMMON_IMPLEMENTATION",
|
||||
"-DU_STATIC_IMPLEMENTATION",
|
||||
"-DU_HAVE_STD_ATOMICS",
|
||||
] + select({
|
||||
":android": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user