meta: add tool to combine multiple compile-commands database files

this allows once instance of an lsp to understand multiple
cmake build directories.
This commit is contained in:
2026-02-26 19:46:13 +00:00
parent dc93f7db4c
commit 01109948b2
3 changed files with 29 additions and 0 deletions

View File

@@ -57,4 +57,9 @@ cmake \
-DCMAKE_SYSTEM_NAME=Rosetta \
-DCMAKE_TOOLCHAIN_FILE=$source_dir/arch/$target_arch/Platform/Rosetta.cmake
python3 \
$source_dir/util/merge-compiledb.py \
compile_commands.json \
toolchain/compile_commands.json
popd > /dev/null