aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Eugene Brevdo <ebrevdo@google.com>2017-01-27 17:37:30 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-27 17:46:06 -0800
commitce2a102760ad7c3503db484a4c0cdd97b5543dfc (patch)
tree937d61ee560bb9b7a8798106fe648b599088521d /configure
parent9d7899f99267727e65e0a8183f30cab24bef5536 (diff)
Add xla target for tensorflow tests that request them.
Change: 145856327
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 6cd5c2f3db..2d8d85b021 100755
--- a/configure
+++ b/configure
@@ -175,10 +175,10 @@ done
if [ "$TF_ENABLE_XLA" == "1" ]; then
# Update Bazel build configuration.
- perl -pi -e "s,WITH_XLA_SUPPORT = (False|True),WITH_XLA_SUPPORT = True,s" tensorflow/core/platform/default/build_config.bzl
+ sed -i -e "s/^WITH_XLA_SUPPORT = [FT].*/WITH_XLA_SUPPORT = True/" tensorflow/core/platform/default/build_config_root.bzl
else
# Update Bazel build configuration.
- perl -pi -e "s,WITH_XLA_SUPPORT = (False|True),WITH_XLA_SUPPORT = False,s" tensorflow/core/platform/default/build_config.bzl
+ sed -i -e "s/^WITH_XLA_SUPPORT = [FT].*/WITH_XLA_SUPPORT = False/" tensorflow/core/platform/default/build_config_root.bzl
fi