work on compile commands bash file

This commit is contained in:
2025-09-07 13:24:11 -05:00
parent d2c7059d3d
commit c28caef038

View File

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