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)
commit6eee3a3fca80f841e70185ea5feba06f9d258860
treec82c807f931dbbfd03dabd7fb4c878f1755d72a7
parent5f24c12dc4cfddc598fa8804f2511de391d14ebf
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
clang-tools-extra/clang-tidy/tool/CMakeLists.txt