[libcxx-commits] [libcxx] [libc++] Remove unnecessary check for LIBCXX_INCLUDE_TESTS (PR #100573)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 25 06:59:43 PDT 2024
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/100573
This whole CMakeLists.txt is only included from the parent directory if LIBCXX_INCLUDE_TESTS is true.
>From 1efb0ed1a1f13c35d3aa16ecbcf752da0379e45e Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Mon, 15 Jul 2024 15:14:40 -0400
Subject: [PATCH] [libc++] Remove unnecessary check for LIBCXX_INCLUDE_TESTS
This whole CMakeLists.txt is only included from the parent directory
if LIBCXX_INCLUDE_TESTS is true.
---
libcxx/test/CMakeLists.txt | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
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)
More information about the libcxx-commits
mailing list