[debuginfo-tests] r362039 - Move the pybool logic from CMake to Python for simplicity

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 14:45:43 PDT 2019


Author: rnk
Date: Wed May 29 14:45:43 2019
New Revision: 362039

URL: http://llvm.org/viewvc/llvm-project?rev=362039&view=rev
Log:
Move the pybool logic from CMake to Python for simplicity

This is how similar booleans are handled, and seems to work for me
locally.

Modified:
    debuginfo-tests/trunk/CMakeLists.txt
    debuginfo-tests/trunk/lit.site.cfg.py.in

Modified: debuginfo-tests/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/CMakeLists.txt?rev=362039&r1=362038&r2=362039&view=diff
==============================================================================
--- debuginfo-tests/trunk/CMakeLists.txt (original)
+++ debuginfo-tests/trunk/CMakeLists.txt Wed May 29 14:45:43 2019
@@ -13,9 +13,6 @@ set(DEBUGINFO_TEST_DEPS
   not
   )
 
-# Indicate if this is an MSVC environment.
-pythonize_bool(MSVC)
-
 configure_lit_site_cfg(
   ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py

Modified: debuginfo-tests/trunk/lit.site.cfg.py.in
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/lit.site.cfg.py.in?rev=362039&r1=362038&r2=362039&view=diff
==============================================================================
--- debuginfo-tests/trunk/lit.site.cfg.py.in (original)
+++ debuginfo-tests/trunk/lit.site.cfg.py.in Wed May 29 14:45:43 2019
@@ -17,7 +17,7 @@ config.has_lld = lit.util.pythonize_bool
 config.host_triple = "@LLVM_HOST_TRIPLE@"
 config.target_triple = "@TARGET_TRIPLE@"
 config.host_arch = "@HOST_ARCH@"
-config.is_msvc = @MSVC_PYBOOL@
+config.is_msvc = lit.util.pythonize_bool("@MSVC@")
 
 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
 




More information about the llvm-commits mailing list