Skip to content

Commit d99e946

Browse files
committed
[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
1 parent 2cbf9fd commit d99e946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-repl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set( LLVM_LINK_COMPONENTS
22
${LLVM_TARGETS_TO_BUILD}
33
Core
4+
LineEditor
45
Option
56
OrcJIT
67
Support
@@ -14,5 +15,4 @@ clang_target_link_libraries(clang-repl PUBLIC
1415
clangBasic
1516
clangInterpreter
1617
clangTooling
17-
LLVMLineEditor
1818
)

0 commit comments

Comments
 (0)