working compdb export

This commit is contained in:
2025-09-07 14:05:49 -05:00
parent c28caef038
commit ab639e635a
5 changed files with 10 additions and 17 deletions

8
export_compdb.sh Normal file
View File

@@ -0,0 +1,8 @@
srcs=src/*
working_dir=$pwd
echo [ > compile_commands.json
find src -iname "*.cpp" -exec sh -c 'echo { \"directory\": \"$(pwd)\", \"command\": \"cl {} -I inc -Od -std:c++20 -Fo\", \"file\": \"{}\" }, >> compile_commands.json' \;
echo ] >> compile_commands.json