[PATCH] D107558: [clang] [clang-repl] Fix linking against LLVMLineEditor
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 5 05:02:51 PDT 2021
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
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107558.364425.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210805/f676526b/attachment.bin>
More information about the cfe-commits
mailing list