diff options
Diffstat (limited to 'tensorflow/core/platform/default/build_config_root.bzl')
-rw-r--r-- | tensorflow/core/platform/default/build_config_root.bzl | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tensorflow/core/platform/default/build_config_root.bzl b/tensorflow/core/platform/default/build_config_root.bzl index 23a7b9065a..79f97c1234 100644 --- a/tensorflow/core/platform/default/build_config_root.bzl +++ b/tensorflow/core/platform/default/build_config_root.bzl @@ -2,8 +2,6 @@ # The functions in this file might be referred by tensorflow.bzl. They have to # be separate to avoid cyclic references. -WITH_XLA_SUPPORT = False - def tf_cuda_tests_tags(): return ["local"] @@ -11,16 +9,16 @@ def tf_sycl_tests_tags(): return ["local"] def tf_additional_plugin_deps(): - deps = [] - if WITH_XLA_SUPPORT: - deps.append("//tensorflow/compiler/jit") - return deps + return select({ + "//tensorflow:with_xla_support": ["//tensorflow/compiler/jit"], + "//conditions:default": [], + }) def tf_additional_xla_deps_py(): return [] def tf_additional_license_deps(): - licenses = [] - if WITH_XLA_SUPPORT: - licenses.append("@llvm//:LICENSE.TXT") - return licenses + return select({ + "//tensorflow:with_xla_support": ["@llvm//:LICENSE.TXT"], + "//conditions:default": [], + }) |