Skip to content

Commit 700cb6b

Browse files
committed
build: fix portable patch hunk structure
1 parent 9021598 commit 700cb6b

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

scripts/patch_tfjava.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,11 +1395,20 @@ def patch_workspace(path: Path) -> None:
13951395
- ],
13961396
+ deps = [
13971397
+ ":portable_tensorflow_lib_lite",
1398-
+ ":protos_all_cc_impl",
1399-
+ "//tensorflow/core/kernels:portable_tensorflow_kernels",
1400-
+ "//third_party/eigen3",
1401-
+ "@com_google_protobuf//:protobuf",
1402-
+ ],
1398+
+ ] + select({
1399+
+ "//tensorflow:android": [
1400+
+ ":protos_all_cc_impl",
1401+
+ "//tensorflow/core/kernels:portable_tensorflow_kernels",
1402+
+ "//third_party/eigen3",
1403+
+ "@com_google_protobuf//:protobuf",
1404+
+ ],
1405+
+ "//conditions:default": [
1406+
+ ":protos_all_cc_impl",
1407+
+ "//tensorflow/core/kernels:portable_tensorflow_kernels",
1408+
+ "//third_party/eigen3",
1409+
+ "@com_google_protobuf//:protobuf",
1410+
+ ],
1411+
+ }),
14031412
alwayslink = 1,
14041413
)
14051414
"""

0 commit comments

Comments
 (0)