[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:
Michal Gorny 2019-10-15 13:05:38 +00:00
parent b65fa48305
commit 9c9bd1657c
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ add_clang_library(clangTidy
)
if(CLANG_ENABLE_STATIC_ANALYZER)
clang_target_link_libraries(clangTidy PRIVATE
target_link_libraries(clangTidy PRIVATE
clangStaticAnalyzerCore
clangStaticAnalyzerFrontend
)