[libcxx-commits] [libcxx] [libc++] Remove unnecessary check for LIBCXX_INCLUDE_TESTS (PR #100573)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 25 07:00:18 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Louis Dionne (ldionne)
<details>
<summary>Changes</summary>
This whole CMakeLists.txt is only included from the parent directory if LIBCXX_INCLUDE_TESTS is true.
---
Full diff: https://github.com/llvm/llvm-project/pull/100573.diff
1 Files Affected:
- (modified) libcxx/test/CMakeLists.txt (+12-15)
``````````diff
diff --git a/libcxx/test/CMakeLists.txt b/libcxx/test/CMakeLists.txt
index cdd1c2d90fbcf..2200de6a36ce7 100644
--- a/libcxx/test/CMakeLists.txt
+++ b/libcxx/test/CMakeLists.txt
@@ -34,24 +34,21 @@ endif()
serialize_lit_params_list(SERIALIZED_LIT_PARAMS LIBCXX_TEST_PARAMS)
-if (LIBCXX_INCLUDE_TESTS)
- include(AddLLVM) # for configure_lit_site_cfg and add_lit_testsuite
+include(AddLLVM) # for configure_lit_site_cfg and add_lit_testsuite
- configure_file("${CMAKE_CURRENT_SOURCE_DIR}/configs/cmake-bridge.cfg.in"
- "${CMAKE_CURRENT_BINARY_DIR}/cmake-bridge.cfg"
- @ONLY)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/configs/cmake-bridge.cfg.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/cmake-bridge.cfg"
+ @ONLY)
- configure_lit_site_cfg(
- "${LIBCXX_TEST_CONFIG}"
- ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
- MAIN_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py")
+configure_lit_site_cfg(
+ "${LIBCXX_TEST_CONFIG}"
+ ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
+ MAIN_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py")
- add_lit_testsuite(check-cxx
- "Running libcxx tests"
- ${CMAKE_CURRENT_BINARY_DIR}
- DEPENDS cxx-test-depends)
-
-endif()
+add_lit_testsuite(check-cxx
+ "Running libcxx tests"
+ ${CMAKE_CURRENT_BINARY_DIR}
+ DEPENDS cxx-test-depends)
if (LIBCXX_GENERATE_COVERAGE)
include(CodeCoverage)
``````````
</details>
https://github.com/llvm/llvm-project/pull/100573
More information about the libcxx-commits
mailing list