[build] Update compile_commands.json when building

The compile_commands.json database is used by clangd to understand the
compilation settings of the project. Keep this up to date by making
ninja update it as part of the build, and have it depend on all build
and module files.
This commit is contained in:
Justin C. Miller
2022-01-23 17:47:06 -08:00
parent 2750ec8ef9
commit a30ef5b3dc
4 changed files with 17 additions and 3 deletions

View File

@@ -76,3 +76,6 @@ rule strip
rule touch
command = touch $out
rule compdb
command = ninja -t compdb > $out