[PATCH] D145302: [clangd] Add library for clangd main function
Khem Raj via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 11 22:56:34 PDT 2023
raj.khem added a comment.
indeed, broke my CI with same issue.
In D145302#4491973 <https://reviews.llvm.org/D145302#4491973>, @glandium wrote:
> This broke building with `-DLLVM_LINK_LLVM_DYLIB=ON`:
>
> /usr/bin/ld: tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/AddUsing.cpp.o: in function `clang::clangd::(anonymous namespace)::AddUsing::prepare(clang::clangd::Tweak::Selection const&)':
> AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x1c): undefined reference to `clang::clangd::ParsedAST::getASTContext()'
> /usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x6d): undefined reference to `clang::clangd::ParsedAST::getASTContext() const'
> /usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x9a): undefined reference to `clang::clangd::isHeaderFile(llvm::StringRef, std::optional<clang::LangOptions>)'
> /usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0xcc): undefined reference to `clang::clangd::SelectionTree::commonAncestor() const'
> /usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x391): undefined reference to `clang::clangd::printNamespaceScope[abi:cxx11](clang::DeclContext const&)'
>
> etc.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145302/new/
https://reviews.llvm.org/D145302
More information about the cfe-commits
mailing list