LLVMTestingSupport is not part of libLLVM, and therefore can not
be linked to via LLVM_LINK_COMPONENTS. Instead, it needs to be
specified explicitly to ensure that it is linked explicitly
even if LLVM_LINK_LLVM_DYLIB is used. This is consistent with handling
in clangd.
Fixes PR#48931
Differential Revision: https://reviews.llvm.org/D95653
(cherry picked from commit
632545e8ce846ccaeca8df15a3dc5e36d01a1275)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support
- TestingSupport
)
get_filename_component(CLANG_LINT_SOURCE_DIR
clangTidyObjCModule
clangTidyReadabilityModule
clangTidyUtils
+ LLVMTestingSupport
)