Skip to content

Commit 6e94c13

Browse files
committed
build: rewrite portable shim unified diff
1 parent 0e8426f commit 6e94c13

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

scripts/patch_tfjava.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ def patch_workspace(path: Path) -> None:
13461346
copts = tf_copts(android_optimization_level_override = None) + tf_opts_nortti_if_lite_protos() + if_ios(["-Os"]),
13471347
defines = ["SUPPORT_SELECTIVE_REGISTRATION"] + tf_portable_full_lite_protos(
13481348
full = [],
1349-
@@ -1390,11 +1390,22 @@
1349+
@@ -1390,9 +1390,21 @@
13501350
"notap",
13511351
],
13521352
visibility = ["//visibility:public"],
@@ -1366,15 +1366,15 @@ def patch_workspace(path: Path) -> None:
13661366
+ ]) + select({
13671367
+ "//tensorflow:android": [],
13681368
+ "//conditions:default": [
1369-
+ ":protos_all_cc_impl",
1370-
+ "//tensorflow/core/util:stats_calculator_portable",
1371-
+ "//tensorflow/core:mobile_additional_lib_deps",
1369+
+ ":protos_all_cc_impl",
1370+
+ "//tensorflow/core/util:stats_calculator_portable",
1371+
+ "//tensorflow/core:mobile_additional_lib_deps",
13721372
+ ],
13731373
+ }) + tf_portable_deps_no_runtime(),
13741374
alwayslink = 1,
13751375
)
13761376
1377-
@@ -1485,7 +1492,7 @@
1377+
@@ -1485,7 +1497,7 @@
13781378
13791379
cc_library(
13801380
name = "portable_tensorflow_lib",
@@ -1383,7 +1383,7 @@ def patch_workspace(path: Path) -> None:
13831383
copts = tf_copts() + tf_opts_nortti_if_lite_protos(),
13841384
features = tf_features_nomodules_if_mobile(),
13851385
tags = [
1386-
@@ -1493,12 +1500,16 @@
1386+
@@ -1493,12 +1505,21 @@
13871387
"notap",
13881388
],
13891389
visibility = ["//visibility:public"],
@@ -1410,8 +1410,8 @@ def patch_workspace(path: Path) -> None:
14101410
+ "@com_google_protobuf//:protobuf",
14111411
+ ],
14121412
+ }),
1413-
alwayslink = 1,
1414-
)
1413+
alwayslink = 1,
1414+
)
14151415
"""
14161416

14171417

0 commit comments

Comments
 (0)