summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@moritz.systems>2021-08-05 14:00:34 +0200
committerMichał Górny <mgorny@moritz.systems>2021-08-05 16:51:47 +0200
commitd99e9461b07988914cba573800cd1862f277e155 (patch)
treefd973984622f80409a2af625bd159f4155a94cea
parent2cbf9fd402afe8c33272bf60997cfb7e1f7c5f69 (diff)
downloadllvm-d99e9461b07988914cba573800cd1862f277e155.tar.gz
[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
-rw-r--r--clang/tools/clang-repl/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-repl/CMakeLists.txt b/clang/tools/clang-repl/CMakeLists.txt
index ae0e4f39be70..c2576d7c564d 100644
--- a/clang/tools/clang-repl/CMakeLists.txt
+++ b/clang/tools/clang-repl/CMakeLists.txt
@@ -1,6 +1,7 @@
set( LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Core
+ LineEditor
Option
OrcJIT
Support
@@ -14,5 +15,4 @@ clang_target_link_libraries(clang-repl PUBLIC
clangBasic
clangInterpreter
clangTooling
- LLVMLineEditor
)