aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorflow.bzl
diff options
context:
space:
mode:
authorGravatar Allen Lavoie <allenl@google.com>2018-07-20 16:34:46 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-20 16:39:49 -0700
commit0cc0166a97f95499f0af673f3004d6bb748dc7e4 (patch)
tree97c6de74eabe6b84056c0f2782212320e9736c10 /tensorflow/tensorflow.bzl
parenta4b95884f870a040038e530c978239999933acd9 (diff)
Relax dependency checking for custom op libraries
These checks were necessary when we used RTLD_GLOBAL to expose TF symbols to custom ops, since :framework and :lib pulled in implementations. They're now header-only. Ideally we'd switch the checks to framework_internal_impl and lib_internal_impl, but that would require visibility for those rules (thus making it more likely they'd get included in silly places). So this change disables the check for dynamic builds, on the theory that accidentally relying on implementation rules is much more difficult than it was with a static build. Should allow tf_custom_op_libraries to depend on GPU kernels (which depend on core:gpu_lib which depends on :framework). PiperOrigin-RevId: 205472434
Diffstat (limited to 'tensorflow/tensorflow.bzl')
-rw-r--r--tensorflow/tensorflow.bzl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl
index 954940642b..26970c8cb0 100644
--- a/tensorflow/tensorflow.bzl
+++ b/tensorflow/tensorflow.bzl
@@ -1359,7 +1359,7 @@ def tf_custom_op_library(name, srcs=[], gpu_srcs=[], deps=[], linkopts=[]):
name=name,
srcs=srcs,
deps=deps + if_cuda(cuda_deps),
- data=[name + "_check_deps"],
+ data=if_static([name + "_check_deps"]),
copts=tf_copts(is_external=True),
features = ["windows_export_all_symbols"],
linkopts=linkopts + select({