ensure xla is turned off (#16974)
Co-authored-by: Sinan81 <sbulut@3vgeomatics.com>
This commit is contained in:
parent
7b6e1ae9d3
commit
73d13461b1
@ -525,6 +525,13 @@ def configure(self, spec, prefix):
|
|||||||
@run_after('configure')
|
@run_after('configure')
|
||||||
def post_configure_fixes(self):
|
def post_configure_fixes(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
|
||||||
|
# make sure xla is actually turned off
|
||||||
|
if spec.satisfies('~xla'):
|
||||||
|
filter_file(r'--define with_xla_support=true',
|
||||||
|
r'--define with_xla_support=false',
|
||||||
|
'.tf_configure.bazelrc')
|
||||||
|
|
||||||
if spec.satisfies('@1.5.0: ~android'):
|
if spec.satisfies('@1.5.0: ~android'):
|
||||||
# env variable is somehow ignored -> brute force
|
# env variable is somehow ignored -> brute force
|
||||||
# TODO: find a better solution
|
# TODO: find a better solution
|
||||||
|
Loading…
Reference in New Issue
Block a user