From: Eric Fiselier Date: Wed, 12 Apr 2017 22:07:47 +0000 (+0000) Subject: Fix clang-tidy shared link with libc++ X-Git-Tag: llvmorg-5.0.0-rc1~7889 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6eee3a3fca80f841e70185ea5feba06f9d258860;p=platform%2Fupstream%2Fllvm.git Fix clang-tidy shared link with libc++ Currently the ClangTidyMain.cpp fails to link against shared LLVM/Clang libraries due to the missing symbol: clang::tooling::operator<(clang::tooling::Replacement const&, clang::tooling::Replacement const&); This patch fixes the issue by correctly linking clangToolingCore which contains the definition. llvm-svn: 300115 --- diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt index 01e2f74..2d404d0 100644 --- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt @@ -25,6 +25,7 @@ target_link_libraries(clang-tidy clangTidyPerformanceModule clangTidyReadabilityModule clangTooling + clangToolingCore ) install(TARGETS clang-tidy