Skip to content

Commit

Permalink
Merge 846b892 into 3c2be61
Browse files Browse the repository at this point in the history
  • Loading branch information
scentini authored Aug 29, 2019
2 parents 3c2be61 + 846b892 commit ceb6ae5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorflow/cc/saved_model/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ cc_library(
]) + if_android([
"//tensorflow/core:android_tensorflow_lib",
]),
alwayslink = 1,
)

cc_library(
Expand All @@ -105,6 +106,7 @@ cc_library(
"//tensorflow/core:protos_all_cc",
# mobile not supported yet
]),
alwayslink = 1,
)

cc_library(
Expand All @@ -123,6 +125,7 @@ cc_library(
"//tensorflow/core/util/tensor_bundle:naming",
# mobile not supported yet
]),
alwayslink = 1,
)

tf_cc_test(
Expand Down
2 changes: 2 additions & 0 deletions tensorflow/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ cc_library(
":lib_proto_parsing",
":protos_all_cc",
],
alwayslink = 1,
)

# DEPRECATED: use platform:stringpiece instead.
Expand Down Expand Up @@ -2501,6 +2502,7 @@ cc_library(
"@com_google_protobuf//:protobuf",
] + tf_protos_all_impl() + tf_protos_grappler_impl() +
tf_additional_numa_deps(),
alwayslink = 1,
)

# File compiled with extra flags to get cpu-specific acceleration.
Expand Down
5 changes: 5 additions & 0 deletions tensorflow/core/platform/default/build_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def cc_proto_library(
# An empty cc_library to make rule dependency consistent.
native.cc_library(
name = name,
alwayslink = 1,
**kargs
)
return
Expand Down Expand Up @@ -228,12 +229,14 @@ def cc_proto_library(
hdrs = gen_hdrs,
deps = cc_libs + deps,
includes = includes,
alwayslink = 1,
**kargs
)
native.cc_library(
name = header_only_name,
deps = ["@com_google_protobuf//:protobuf_headers"] + if_static([impl_name]),
hdrs = gen_hdrs,
alwayslink = 1,
**kargs
)

Expand Down Expand Up @@ -354,10 +357,12 @@ def tf_proto_library_cc(
deps = cc_deps + ["@com_google_protobuf//:protobuf_headers"] + if_static([name + "_cc_impl"]),
testonly = testonly,
visibility = visibility,
alwayslink = 1,
)
native.cc_library(
name = cc_name + "_impl",
deps = [s + "_impl" for s in cc_deps] + ["@com_google_protobuf//:cc_wkt_protos"],
alwayslink = 1,
)

return
Expand Down
1 change: 1 addition & 0 deletions tensorflow/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ cc_library(
"//tensorflow/core:op_gen_lib",
"//tensorflow/core:protos_all_cc",
],
alwayslink = 1,
)

py_library(
Expand Down
2 changes: 2 additions & 0 deletions third_party/systemlibs/protobuf.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def cc_proto_library(
# An empty cc_library to make rule dependency consistent.
native.cc_library(
name = name,
alwayslink = 1,
**kargs
)
return
Expand Down Expand Up @@ -262,6 +263,7 @@ def cc_proto_library(
hdrs = gen_hdrs,
deps = cc_libs + deps,
includes = includes,
alwayslink = 1,
**kargs
)

Expand Down

0 comments on commit ceb6ae5

Please sign in to comment.