[PATCH] D56912: Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 18 16:14:25 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD351614: Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [lld] (authored by nico, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D56912?vs=182517&id=182626#toc
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56912/new/
https://reviews.llvm.org/D56912
Files:
test/CMakeLists.txt
test/lit.cfg.py
test/lit.site.cfg.py.in
Index: test/lit.site.cfg.py.in
===================================================================
--- test/lit.site.cfg.py.in
+++ test/lit.site.cfg.py.in
@@ -7,7 +7,7 @@
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
-config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@"
+config.llvm_libxml2_enabled = @LLVM_LIBXML2_ENABLED@
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
config.lld_obj_root = "@LLD_BINARY_DIR@"
config.lld_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@"
Index: test/lit.cfg.py
===================================================================
--- test/lit.cfg.py
+++ test/lit.cfg.py
@@ -87,11 +87,11 @@
# 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:
Index: test/CMakeLists.txt
===================================================================
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -14,7 +14,9 @@
endif()
llvm_canonicalize_cmake_booleans(
- HAVE_LIBZ)
+ HAVE_LIBZ
+ LLVM_LIBXML2_ENABLED
+ )
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56912.182626.patch
Type: text/x-patch
Size: 1642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190119/8b665c0b/attachment.bin>
More information about the llvm-commits
mailing list