From e733b05fc5488af875480d9ba0a9b32d8b493836 Mon Sep 17 00:00:00 2001 From: Gunhan Gulsoy Date: Fri, 28 Feb 2020 13:26:50 -0800 Subject: [PATCH] Fix the XLA disabling mechanism in configure.py Environment variables are strings, not integers.'0' does not evaluate to false. PiperOrigin-RevId: 297916971 Change-Id: I9df143690b16a181fa5f0c4a60ac2f944b396672 --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index b93612af66d..f2c6e0c4dcc 100644 --- a/configure.py +++ b/configure.py @@ -1390,7 +1390,7 @@ def main(): else: environ_cp['TF_CONFIGURE_IOS'] = '0' - if environ_cp.get('TF_ENABLE_XLA', 1): + if environ_cp.get('TF_ENABLE_XLA', '1') == '1': write_to_bazelrc('build --config=xla') set_action_env_var(