forked from OSchip/llvm-project
[clang-tools-extra] Fix overzealous linking of dylib to clangTidy
Fix accidentally making clangTidy library link to dylib. This causes libclang.so to also link to dylib which results in duplicate symbols from shared and static libraries, and effectively to registering command-line options twice. Thanks to Sylvestre Ledru for noticing this and tracking it down to r373786. Fixes PR#43589. Differential Revision: https://reviews.llvm.org/D68927 llvm-svn: 374885
This commit is contained in:
parent
b65fa48305
commit
9c9bd1657c
|
@ -31,7 +31,7 @@ add_clang_library(clangTidy
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CLANG_ENABLE_STATIC_ANALYZER)
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
||||||
clang_target_link_libraries(clangTidy PRIVATE
|
target_link_libraries(clangTidy PRIVATE
|
||||||
clangStaticAnalyzerCore
|
clangStaticAnalyzerCore
|
||||||
clangStaticAnalyzerFrontend
|
clangStaticAnalyzerFrontend
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue