[clang-tools-extra] [clang-tidy] Remove redundant LINK_LIBS (PR #94588)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 01:33:16 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-tidy

Author: Nikita Popov (nikic)

<details>
<summary>Changes</summary>

clangAnalysis is already being pulled in via clang_target_link_libraries(). Also listing it in LINK_LIBS means that we'll link both against the static libraries and the shared libclang-cpp.so library if CLANG_LINK_CLANG_DYLIB is enabled, and waste time on unnecessary LTO.

---
Full diff: https://github.com/llvm/llvm-project/pull/94588.diff


1 Files Affected:

- (modified) clang-tools-extra/clang-tidy/misc/CMakeLists.txt (-1) 


``````````diff
diff --git a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt
index 35e29b9a7d136..36fcd8fc1b277 100644
--- a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt
@@ -43,7 +43,6 @@ add_clang_library(clangTidyMiscModule
   UseAnonymousNamespaceCheck.cpp
 
   LINK_LIBS
-  clangAnalysis
   clangTidy
   clangTidyUtils
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/94588


More information about the cfe-commits mailing list