[clangd] Fix link failures for Preprocessor::addCommentHandler
authorHeejin Ahn <aheejin@gmail.com>
Sun, 18 Feb 2018 10:50:16 +0000 (10:50 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Sun, 18 Feb 2018 10:50:16 +0000 (10:50 +0000)
commitf4a29252fba7cd361ddb5c8c49215fae0fd668dc
tree7d4ef05b3cc12c4eaf44b01bef6f12cc6feaaae4
parent891789c29947a57f0882829100c6b91f680672c6
[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
clang-tools-extra/clangd/global-symbol-builder/CMakeLists.txt
clang-tools-extra/unittests/clangd/CMakeLists.txt