[clangd] Fix link failures for Preprocessor::addCommentHandler

Summary:
D42640 adds calls to `Preprocessor::addCommentHandler` in
`unittests/clangd/SymbolCollectorTests.cpp` and
`clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp` but does not
link `clangLex` library. This causes undefined reference errors when
built with `-DBUILD_SHARED_LIBS=ON`.

Reviewers: ioeric

Subscribers: klimek, mgorny, ilya-biryukov, jkorous-apple, cfe-commits

Differential Revision: https://reviews.llvm.org/D43437

llvm-svn: 325458
This commit is contained in:
Heejin Ahn 2018-02-18 10:50:16 +00:00
parent 891789c299
commit f4a29252fb
2 changed files with 2 additions and 0 deletions

View File

@ -15,5 +15,6 @@ target_link_libraries(global-symbol-builder
clangDaemon
clangBasic
clangFrontend
clangLex
clangTooling
)

View File

@ -38,6 +38,7 @@ target_link_libraries(ClangdTests
clangFormat
clangFrontend
clangIndex
clangLex
clangSema
clangTooling
clangToolingCore