[libcxx-commits] [libcxx] [libc++][CMake] Removes LIBCXX_ENABLE_CLANG_TIDY. (PR #85262)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 15 10:54:23 PDT 2024
================
@@ -9,6 +9,17 @@ set(Clang_DIR_SAVE ${Clang_DIR})
# versions must match. Otherwise there likely will be ODR-violations. This had
# led to crashes and incorrect output of the clang-tidy based checks.
find_package(Clang ${CMAKE_CXX_COMPILER_VERSION})
+if(NOT Clang_FOUND)
+ message(STATUS "Clang-tidy tests are disabled since the "
+ "Clang development package is unavailable.")
+ return()
+endif()
+if(NOT TARGET clangTidy)
----------------
mordante wrote:
Review note: This happens in the bootstrap build. I still think we should fix the bootstrap build; however we need to handle this case too.
https://github.com/llvm/llvm-project/pull/85262
More information about the libcxx-commits
mailing list