[PATCH] D68927: [clang-tools-extra] Fix overzealous linking of dylib to clangTidy
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 13 02:38:11 PDT 2019
mgorny created this revision.
mgorny added reviewers: sylvestre.ledru, beanz.
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.
https://reviews.llvm.org/D68927
Files:
clang-tools-extra/clang-tidy/CMakeLists.txt
Index: clang-tools-extra/clang-tidy/CMakeLists.txt
===================================================================
--- clang-tools-extra/clang-tidy/CMakeLists.txt
+++ clang-tools-extra/clang-tidy/CMakeLists.txt
@@ -31,7 +31,7 @@
)
if(CLANG_ENABLE_STATIC_ANALYZER)
- clang_target_link_libraries(clangTidy PRIVATE
+ target_link_libraries(clangTidy PRIVATE
clangStaticAnalyzerCore
clangStaticAnalyzerFrontend
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68927.224775.patch
Type: text/x-patch
Size: 433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191013/02c1f23a/attachment.bin>
More information about the cfe-commits
mailing list