[libc++][libc++abi] Serialize the enable_assertions Lit parameter in the generated config 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 GitOrigin-RevId: 65b1b3b961cf0337a007e5646431abf2b7aff334
diff --git a/cmake/caches/Generic-assertions.cmake b/cmake/caches/Generic-assertions.cmake index 18eb866..a1d348e 100644 --- a/cmake/caches/Generic-assertions.cmake +++ b/cmake/caches/Generic-assertions.cmake
@@ -1,3 +1,2 @@ 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 "")
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1c9445b..ebabc70 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt
@@ -104,6 +104,10 @@ 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()