aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/BUILD
diff options
context:
space:
mode:
authorGravatar Asim Shankar <ashankar@google.com>2017-04-06 03:01:27 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-06 04:18:16 -0700
commitb0989a0280971034bd838fa176ae3f92b210e8dc (patch)
tree75ac17b3535610d6bb5e6574caefa26a3129574a /tensorflow/c/BUILD
parent36de539d177192aa5a5a2cd69212a722dcf28f17 (diff)
libtensorflow.so: Don't export private symbols.
With this change, libtensorflow.so will only export functions defined in c_api.h. This also results in a decreased binary size of libtensorflow.so. On Linux the decrease was from roughly 150MB to 67MB. On OS X it was from roughly 101MB to 82MB. Also fixes #8923 Change: 152366053
Diffstat (limited to 'tensorflow/c/BUILD')
-rw-r--r--tensorflow/c/BUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/c/BUILD b/tensorflow/c/BUILD
index 0019dfeeb1..6e39deee63 100644
--- a/tensorflow/c/BUILD
+++ b/tensorflow/c/BUILD
@@ -45,6 +45,14 @@ tf_cuda_library(
}),
)
+exports_files(
+ [
+ "version_script.lds",
+ "exported_symbols.lds",
+ ],
+ visibility = ["//visibility:public"],
+)
+
tf_cuda_library(
name = "tf_status_helper",
srcs = ["tf_status_helper.cc"],