File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -906,9 +906,9 @@ def patch_workspace(path: Path) -> None:
906906ANDROID_PORTABLE_LIB_SHIM_PATCH = """--- a/tensorflow/core/BUILD
907907+++ b/tensorflow/core/BUILD
908908@@ -1378,7 +1378,10 @@
909- # --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
910- cc_library(
911- name = "portable_tensorflow_lib_lite",
909+ # --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
910+ cc_library(
911+ name = "portable_tensorflow_lib_lite",
912912- srcs = if_mobile([":mobile_srcs"]),
913913+ srcs = select({
914914+ "//tensorflow:android": [],
@@ -944,10 +944,10 @@ def patch_workspace(path: Path) -> None:
944944+ }),
945945 alwayslink = 1,
946946 )
947-
947+
948948@@ -1485,7 +1499,10 @@
949- cc_library(
950- name = "portable_tensorflow_lib",
949+ cc_library(
950+ name = "portable_tensorflow_lib",
951951- srcs = if_mobile([":portable_op_registrations_and_gradients"]),
952952+ srcs = select({
953953+ "//tensorflow:android": [],
You can’t perform that action at this time.
0 commit comments