Fix clang-tidy shared link with libc++
authorEric Fiselier <eric@efcs.ca>
Wed, 12 Apr 2017 22:07:47 +0000 (22:07 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 12 Apr 2017 22:07:47 +0000 (22:07 +0000)
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

clang-tools-extra/clang-tidy/tool/CMakeLists.txt

index 01e2f74..2d404d0 100644 (file)
@@ -25,6 +25,7 @@ target_link_libraries(clang-tidy
   clangTidyPerformanceModule
   clangTidyReadabilityModule
   clangTooling
+  clangToolingCore
   )
 
 install(TARGETS clang-tidy