Author: Michael Kruse
Date: 2026-05-26T12:08:48+02:00
New Revision: 0f1d083eff4bb5d409093a0c2b5ce32f070f8af7

URL: 
https://github.com/llvm/llvm-project/commit/0f1d083eff4bb5d409093a0c2b5ce32f070f8af7
DIFF: 
https://github.com/llvm/llvm-project/commit/0f1d083eff4bb5d409093a0c2b5ce32f070f8af7.diff

LOG: [Clang][test] check-clang-format not created with LLVM_ENABLE_IDE (#199638)

add_lit_testsuites skips creating targets for each subdirectory when
LLVM_ENABLE_IDE. Only create the dependency (introduced in #199169) when
the check-clang-format target actually exists.

Fixes the LLVM build when using an IDE.

Added: 
    

Modified: 
    clang/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt
index 235e9d0ba4c0a..8dd0084c53224 100644
--- a/clang/test/CMakeLists.txt
+++ b/clang/test/CMakeLists.txt
@@ -256,4 +256,6 @@ endif()
 
 add_subdirectory(Analysis/LifetimeSafety)
 
-add_dependencies(check-clang-format clang-format-check-format)
+if(TARGET check-clang-format)
+  add_dependencies(check-clang-format clang-format-check-format)
+endif()


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to