mgorny created this revision.
mgorny added reviewers: v.g.vassilev, mstorsjo.
mgorny requested review of this revision.
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.
https://reviews.llvm.org/D107558
Files:
clang/tools/clang-repl/CMakeLists.txt
Index: clang/tools/clang-repl/CMakeLists.txt
===================================================================
--- clang/tools/clang-repl/CMakeLists.txt
+++ 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 @@
clangBasic
clangInterpreter
clangTooling
- LLVMLineEditor
)
Index: clang/tools/clang-repl/CMakeLists.txt
===================================================================
--- clang/tools/clang-repl/CMakeLists.txt
+++ 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 @@
clangBasic
clangInterpreter
clangTooling
- LLVMLineEditor
)
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits