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
This commit is contained in:
parent
5371813fdb
commit
e733b05fc5
@ -1390,7 +1390,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
environ_cp['TF_CONFIGURE_IOS'] = '0'
|
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')
|
write_to_bazelrc('build --config=xla')
|
||||||
|
|
||||||
set_action_env_var(
|
set_action_env_var(
|
||||||
|
Loading…
Reference in New Issue
Block a user