[clang] d99e946 - [clang] [clang-repl] Fix linking against LLVMLineEditor

Michał Górny via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 5 07:52:06 PDT 2021


Author: Michał Górny
Date: 2021-08-05T16:51:47+02:00
New Revision: d99e9461b07988914cba573800cd1862f277e155

URL: https://github.com/llvm/llvm-project/commit/d99e9461b07988914cba573800cd1862f277e155
DIFF: https://github.com/llvm/llvm-project/commit/d99e9461b07988914cba573800cd1862f277e155.diff

LOG: [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

Added: 
    

Modified: 
    clang/tools/clang-repl/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/tools/clang-repl/CMakeLists.txt b/clang/tools/clang-repl/CMakeLists.txt
index ae0e4f39be70f..c2576d7c564d9 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
   )


        


More information about the cfe-commits mailing list