Author: Michał Górny Date: 2021-08-06T12:43:37-07:00 New Revision: 8fbd0e2670f21403c923279e9cabcdb1d4dd8d18
URL: https://github.com/llvm/llvm-project/commit/8fbd0e2670f21403c923279e9cabcdb1d4dd8d18 DIFF: https://github.com/llvm/llvm-project/commit/8fbd0e2670f21403c923279e9cabcdb1d4dd8d18.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 (cherry picked from commit d99e9461b07988914cba573800cd1862f277e155) 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 ) _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
