Packaging clangd with GRPC support
Sam McCall
sammccall at google.com
Thu Jan 27 17:07:30 GMT 2022
Hi Sylvestre & other esteemed Debian folks,
Clangd (part of llvm-project, 'clangd' debian package) has support for
using a remote server to provide the project index instead of building it
locally.
Docs on the feature: https://clangd.llvm.org/design/remote-index
This feature is optional (off by default in CMake) because it depends on
GRPC+protobuf.
We'd like the debian packages to include it. Does this sound reasonable?
It requires:
- at build time (Build-Depends?): libgrpc++-dev libprotobuf-dev
protobuf-compiler-grpc
- run CMake with -DCLANGD_ENABLE_REMOTE=On
- at runtime (Depends?): libgrpc++1, libprotobuf23.
Only clangd uses grpc/protobuf and needs these runtime dependencies, not
other LLVM packages such as clang. I don't know debian packaging/versioning
enough to know what determines the versions of the runtime dependency (e.g.
23 for libprotobuf).
I'm happy to work on this any way I can, but don't know Debian packaging
and I'd need some pointers on where to start. Alternatively I can provide
any info you need.
Cheers,
Sam & clangd maintainers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20220127/54fe0b4b/attachment.htm>
More information about the Pkg-llvm-team
mailing list