From 63fd07ce07bd700f009edd232db122d2aade895b Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 19 Jan 2019 00:10:54 +0000 Subject: Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [llvm] 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). Also alphabetically sort the list passed to llvm_canonicalize_cmake_booleans() in llvm/test/CMakeLists.txt. No intended behavior change. Differential Revision: https://reviews.llvm.org/D56912 llvm-svn: 351615 --- llvm/test/lit.cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test/lit.cfg.py') diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index 4200dd57dc4..0cd67655eb3 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -324,7 +324,7 @@ if config.have_libxar: if config.enable_threads: config.available_features.add('thread_support') -if config.llvm_libxml2_enabled == '1': +if config.llvm_libxml2_enabled: config.available_features.add('libxml2') if config.have_opt_viewer_modules: -- cgit v1.2.3