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 )
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 )
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits