summaryrefslogtreecommitdiffstats
path: root/lld/test/lit.cfg.py
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-01-19 00:09:43 +0000
committerNico Weber <nicolasweber@gmx.de>2019-01-19 00:09:43 +0000
commitb166d7e72512d699fadd2a049dac2ba6a7af888e (patch)
tree96a2775bb4923243882099fb3015ff4bdf0b4729 /lld/test/lit.cfg.py
parent8e7600dc43cab3bf006e2b12d288687b2b323f1b (diff)
downloadbcm5719-llvm-b166d7e72512d699fadd2a049dac2ba6a7af888e.tar.gz
bcm5719-llvm-b166d7e72512d699fadd2a049dac2ba6a7af888e.zip
Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [lld]
r291284 added a nice mechanism to consistently pass CMake on/off toggles to lit. This change uses it for LLVM_LIBXML2_ENABLED too (which was added around the same time and doesn't use the new system yet). No intended behavior change. Differential Revision: https://reviews.llvm.org/D56912 llvm-svn: 351614
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 e53ff874003..350b40a1008 100644
--- a/lld/test/lit.cfg.py
+++ b/lld/test/lit.cfg.py
@@ -87,11 +87,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')
if config.have_dia_sdk:
OpenPOWER on IntegriCloud