]> git.ipfire.org Git - thirdparty/systemd.git/commit - docs/HACKING.md
docs: Add a section to HACKING.md on using mkosi and clangd together
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 23 Jan 2021 12:17:36 +0000 (12:17 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 24 Jan 2021 11:14:30 +0000 (11:14 +0000)
commit4cc06b80731ff8542376002c9e064a2a4d50ebfb
tree5aca0c9c0451b5909db8884fc571f616dbddbe70
parent664e54b1bb3e7f945fd8d2b97d1c6f78f0ff5e53
docs: Add a section to HACKING.md on using mkosi and clangd together

While it's perfectly possible today to completely rely on mkosi for
building and testing systemd, to get code completion and other IDE
niceties to work properly, it's still necessary to build systemd
locally.

Recently, mkosi gained the ability to allow external programs to
communicate with the build script. We can use this feature to run
the clangd language server in the mkosi build image via a custom
build script to provide IDE features in editors without requiring
developers to build systemd on the host or install any of systemd's
build dependencies locally.

This commit adds the necessary information on how to set this up
to HACKING.md.
docs/HACKING.md