summaryrefslogtreecommitdiffstats
path: root/lld/test/lit.cfg.py
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-03-20 10:14:31 +0000
committerHans Wennborg <hans@hanshq.net>2018-03-20 10:14:31 +0000
commitc6b5f3833ed0badd7959aaa98fa3530d0618a82b (patch)
tree7ffeeb65739dfa7a107bf669d09dc06f57eab19f /lld/test/lit.cfg.py
parent21afff0ac9a458440871d7f93f91ac26d4765fa0 (diff)
downloadbcm5719-llvm-c6b5f3833ed0badd7959aaa98fa3530d0618a82b.tar.gz
bcm5719-llvm-c6b5f3833ed0badd7959aaa98fa3530d0618a82b.zip
lit: Make config.llvm_libxml2_enabled an int, not a string
@LLVM_LIBXML2_ENABLED@ will be replaced with 0 or 1. Putting quotes around that is unnecessary and just makes it harder to use the value. This matches what have_zlib does below. This also puts the flag together with the feature-related ones instead of the path-related flags. llvm-svn: 327964
Diffstat (limited to 'lld/test/lit.cfg.py')
-rw-r--r--lld/test/lit.cfg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/test/lit.cfg.py b/lld/test/lit.cfg.py
index 05ebc23869a..a1c8910dc64 100644
--- a/lld/test/lit.cfg.py
+++ b/lld/test/lit.cfg.py
@@ -78,11 +78,11 @@ config.environment['LLD_IN_TEST'] = '1'
# Indirectly check if the mt.exe Microsoft utility exists by searching for
# cvtres, which always accompanies it. Alternatively, check if we can use
# libxml2 to merge manifests.
-if (lit.util.which('cvtres', config.environment['PATH'])) or \
- (config.llvm_libxml2_enabled == '1'):
+if lit.util.which('cvtres', config.environment['PATH']) or \
+ config.llvm_libxml2_enabled:
config.available_features.add('manifest_tool')
-if (config.llvm_libxml2_enabled == '1'):
+if config.llvm_libxml2_enabled:
config.available_features.add('libxml2')
tar_executable = lit.util.which('tar', config.environment['PATH'])
OpenPOWER on IntegriCloud