[clang] [clang-repl] Fix linking against LLVMLineEditor
authorMichał Górny <mgorny@moritz.systems>
Thu, 5 Aug 2021 12:00:34 +0000 (14:00 +0200)
committerMichał Górny <mgorny@moritz.systems>
Thu, 5 Aug 2021 14:51:47 +0000 (16:51 +0200)
commitd99e9461b07988914cba573800cd1862f277e155
treefd973984622f80409a2af625bd159f4155a94cea
parent2cbf9fd402afe8c33272bf60997cfb7e1f7c5f69
[clang] [clang-repl] Fix linking against LLVMLineEditor

LLVMLineEditor library is part of the LLVM dylib.  Move it into
LLVM_LINK_COMPONENTS to avoid duplicate linking when dylib is being
used.  This fixes building standalone clang against installed LLVM
without static libraries.

Differential Revision: https://reviews.llvm.org/D107558
clang/tools/clang-repl/CMakeLists.txt