
If a add_clang_library call doesn't specify building as static or shared
library they are implicitly added to the list static libraries that is
linked in to clang-cpp shared library here.
315ba77406/clang/cmake/modules/AddClang.cmake (L107)
Because the clang-tools-extra libraries targets were declared after
clang-cpp they by luck never got linked to clang-cpp.
This change is required for clang symbol visibility macros on windows to
work correctly for clang tools since we need to distinguish if a target
being built will be importing or exporting clang symbols from the
clang-cpp DLL.
44 lines
884 B
CMake
44 lines
884 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
support
|
|
FrontendOpenMP
|
|
)
|
|
|
|
add_clang_library(clangTidyCERTModule STATIC
|
|
CERTTidyModule.cpp
|
|
CommandProcessorCheck.cpp
|
|
DefaultOperatorNewAlignmentCheck.cpp
|
|
DontModifyStdNamespaceCheck.cpp
|
|
FloatLoopCounter.cpp
|
|
LimitedRandomnessCheck.cpp
|
|
MutatingCopyCheck.cpp
|
|
NonTrivialTypesLibcMemoryCallsCheck.cpp
|
|
ProperlySeededRandomGeneratorCheck.cpp
|
|
SetLongJmpCheck.cpp
|
|
StaticObjectExceptionCheck.cpp
|
|
StrToNumCheck.cpp
|
|
ThrownExceptionTypeCheck.cpp
|
|
VariadicFunctionDefCheck.cpp
|
|
|
|
LINK_LIBS
|
|
clangTidy
|
|
clangTidyBugproneModule
|
|
clangTidyConcurrencyModule
|
|
clangTidyGoogleModule
|
|
clangTidyMiscModule
|
|
clangTidyPerformanceModule
|
|
clangTidyReadabilityModule
|
|
clangTidyUtils
|
|
|
|
DEPENDS
|
|
omp_gen
|
|
ClangDriverOptions
|
|
)
|
|
|
|
clang_target_link_libraries(clangTidyCERTModule
|
|
PRIVATE
|
|
clangAST
|
|
clangASTMatchers
|
|
clangBasic
|
|
clangLex
|
|
)
|