@@ -905,9 +905,10 @@ def patch_workspace(path: Path) -> None:
905905
906906ANDROID_PORTABLE_LIB_SHIM_PATCH = """--- a/tensorflow/core/BUILD
907907+++ b/tensorflow/core/BUILD
908- @@ -1379,7 +1379,10 @@
909- cc_library(
910- name = "portable_tensorflow_lib_lite",
908+ @@ -1378,7 +1378,10 @@
909+ # --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
910+ cc_library(
911+ name = "portable_tensorflow_lib_lite",
911912- srcs = if_mobile([":mobile_srcs"]),
912913+ srcs = select({
913914+ "//tensorflow:android": [],
@@ -916,7 +917,7 @@ def patch_workspace(path: Path) -> None:
916917 copts = tf_copts(android_optimization_level_override = None) + tf_opts_nortti_if_lite_protos() + if_ios(["-Os"]),
917918 defines = ["SUPPORT_SELECTIVE_REGISTRATION"] + tf_portable_full_lite_protos(
918919 full = [],
919- @@ -1390,10 +1393,21 @@
920+ @@ -1390,11 +1393,22 @@
920921 "notap",
921922 ],
922923 visibility = ["//visibility:public"],
@@ -943,9 +944,10 @@ def patch_workspace(path: Path) -> None:
943944+ }),
944945 alwayslink = 1,
945946 )
946- @@ -1486,6 +1489,9 @@
947- cc_library(
948- name = "portable_tensorflow_lib",
947+
948+ @@ -1485,7 +1499,10 @@
949+ cc_library(
950+ name = "portable_tensorflow_lib",
949951- srcs = if_mobile([":portable_op_registrations_and_gradients"]),
950952+ srcs = select({
951953+ "//tensorflow:android": [],
@@ -954,7 +956,7 @@ def patch_workspace(path: Path) -> None:
954956 copts = tf_copts() + tf_opts_nortti_if_lite_protos(),
955957 features = tf_features_nomodules_if_mobile(),
956958 tags = [
957- @@ -1492 ,13 +1498 ,18 @@
959+ @@ -1493 ,13 +1510 ,18 @@
958960 "manual",
959961 "notap",
960962 ],
0 commit comments