This means that re-running with llvm-lit in that configuration will
work as expected. This also enables assertions in libc++abi in the
Generic-assertions CI job, which was disabled previously.
Differential Revision: https://reviews.llvm.org/D122597
set(LIBCXX_ENABLE_ASSERTIONS ON CACHE BOOL "")
-set(LIBCXX_TEST_PARAMS "enable_assertions=True" CACHE STRING "")
-set(LIBCXXABI_TEST_PARAMS "enable_assertions=True" CACHE STRING "")
+set(LIBCXXABI_ENABLE_ASSERTIONS ON CACHE BOOL "")
serialize_lit_param(enable_debug_tests False)
endif()
+if (LIBCXX_ENABLE_ASSERTIONS)
+ serialize_lit_param(enable_assertions True)
+endif()
+
if (CMAKE_CXX_COMPILER_TARGET)
serialize_lit_param(target_triple "\"${CMAKE_CXX_COMPILER_TARGET}\"")
else()
serialize_lit_param(enable_exceptions False)
endif()
+if (LIBCXXABI_ENABLE_ASSERTIONS)
+ serialize_lit_param(enable_assertions True)
+endif()
+
serialize_lit_param(enable_experimental False)
if (LLVM_USE_SANITIZER)