[llvm] r351615 - Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [llvm]
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 18 16:10:54 PST 2019
Author: nico
Date: Fri Jan 18 16:10:54 2019
New Revision: 351615
URL: http://llvm.org/viewvc/llvm-project?rev=351615&view=rev
Log:
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
Modified:
llvm/trunk/test/CMakeLists.txt
llvm/trunk/test/lit.cfg.py
llvm/trunk/test/lit.site.cfg.py.in
llvm/trunk/utils/gn/TODO.txt
llvm/trunk/utils/gn/secondary/lld/test/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/test/BUILD.gn
Modified: llvm/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=351615&r1=351614&r2=351615&view=diff
==============================================================================
--- llvm/trunk/test/CMakeLists.txt (original)
+++ llvm/trunk/test/CMakeLists.txt Fri Jan 18 16:10:54 2019
@@ -1,16 +1,17 @@
llvm_canonicalize_cmake_booleans(
- LLVM_TOOL_LTO_BUILD
+ BUILD_SHARED_LIBS
+ HAVE_LIBXAR
+ HAVE_LIBZ
HAVE_OCAMLOPT
HAVE_OCAML_OUNIT
- LLVM_INCLUDE_GO_TESTS
- LLVM_USE_INTEL_JITEVENTS
- HAVE_LIBZ
- HAVE_LIBXAR
LLVM_ENABLE_DIA_SDK
LLVM_ENABLE_FFI
LLVM_ENABLE_THREADS
- BUILD_SHARED_LIBS
+ LLVM_INCLUDE_GO_TESTS
+ LLVM_LIBXML2_ENABLED
LLVM_LINK_LLVM_DYLIB
+ LLVM_TOOL_LTO_BUILD
+ LLVM_USE_INTEL_JITEVENTS
)
configure_lit_site_cfg(
Modified: llvm/trunk/test/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg.py?rev=351615&r1=351614&r2=351615&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg.py (original)
+++ llvm/trunk/test/lit.cfg.py Fri Jan 18 16:10:54 2019
@@ -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:
Modified: llvm/trunk/test/lit.site.cfg.py.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.site.cfg.py.in?rev=351615&r1=351614&r2=351615&view=diff
==============================================================================
--- llvm/trunk/test/lit.site.cfg.py.in (original)
+++ llvm/trunk/test/lit.site.cfg.py.in Fri Jan 18 16:10:54 2019
@@ -39,7 +39,7 @@ config.enable_ffi = @LLVM_ENABLE_FFI@
config.enable_threads = @LLVM_ENABLE_THREADS@
config.build_shared_libs = @BUILD_SHARED_LIBS@
config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@
-config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@"
+config.llvm_libxml2_enabled = @LLVM_LIBXML2_ENABLED@
config.llvm_host_triple = '@LLVM_HOST_TRIPLE@'
config.host_arch = "@HOST_ARCH@"
config.have_opt_viewer_modules = @LLVM_HAVE_OPT_VIEWER_MODULES@
Modified: llvm/trunk/utils/gn/TODO.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/TODO.txt?rev=351615&r1=351614&r2=351615&view=diff
==============================================================================
--- llvm/trunk/utils/gn/TODO.txt (original)
+++ llvm/trunk/utils/gn/TODO.txt Fri Jan 18 16:10:54 2019
@@ -20,8 +20,6 @@ Ideas for things to do:
- add dead code stripping
- move run_tablegen.py from build to tablegen folder
- figure out why -Iclang/Support gets added so often
-- make LLVM_LIBXML2_ENABLED use llvm_canonicalize_cmake_boolean (cf D28294),
- clean up both GN and CMake builds
- plugin() template with working rpath, exports thingers
- then port clang_build_examples and enable by default so that clang
plugin tests run by default
Modified: llvm/trunk/utils/gn/secondary/lld/test/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/lld/test/BUILD.gn?rev=351615&r1=351614&r2=351615&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/lld/test/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/lld/test/BUILD.gn Fri Jan 18 16:10:54 2019
@@ -45,7 +45,7 @@ write_lit_cfg("lit_site_cfg") {
if (llvm_enable_libxml2) {
extra_values += [ "LLVM_LIBXML2_ENABLED=1" ]
} else {
- extra_values += [ "LLVM_LIBXML2_ENABLED=" ] # Must be empty.
+ extra_values += [ "LLVM_LIBXML2_ENABLED=0" ] # Must be 0.
}
if (llvm_enable_zlib) {
Modified: llvm/trunk/utils/gn/secondary/llvm/test/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/test/BUILD.gn?rev=351615&r1=351614&r2=351615&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/test/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/llvm/test/BUILD.gn Fri Jan 18 16:10:54 2019
@@ -140,7 +140,7 @@ write_lit_config("lit_site_cfg") {
if (llvm_enable_libxml2) {
extra_values += [ "LLVM_LIBXML2_ENABLED=1" ]
} else {
- extra_values += [ "LLVM_LIBXML2_ENABLED=" ] # Must be empty.
+ extra_values += [ "LLVM_LIBXML2_ENABLED=0" ] # Must be 0.
}
if (llvm_enable_threads) {
More information about the llvm-commits
mailing list