Skip to content

Commit 26deabb

Browse files
committed
build: fix portable patch context markers
1 parent 03e863e commit 26deabb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/patch_tfjava.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -906,9 +906,9 @@ def patch_workspace(path: Path) -> None:
906906
ANDROID_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": [],

0 commit comments

Comments
 (0)