Move the pybool logic from CMake to Python for simplicity
authorReid Kleckner <rnk@google.com>
Wed, 29 May 2019 21:45:43 +0000 (21:45 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 29 May 2019 21:45:43 +0000 (21:45 +0000)
This is how similar booleans are handled, and seems to work for me
locally.

llvm-svn: 362039

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

index db35d5d..fbab61c 100644 (file)
@@ -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
index 491f454..e981938 100644 (file)
@@ -17,7 +17,7 @@ config.has_lld = lit.util.pythonize_bool("@DEBUGINFO_TESTS_HAS_LLD@")
 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@"