Author: ericwf Date: Wed Apr 12 17:07:47 2017 New Revision: 300115 URL: http://llvm.org/viewvc/llvm-project?rev=300115&view=rev Log: 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. Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt?rev=300115&r1=300114&r2=300115&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt (original) +++ clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt Wed Apr 12 17:07:47 2017 @@ -25,6 +25,7 @@ target_link_libraries(clang-tidy clangTidyPerformanceModule clangTidyReadabilityModule clangTooling + clangToolingCore ) install(TARGETS clang-tidy _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits