work on compile commands bash file
This commit is contained in:
12
export_compile_commands.sh
Normal file
12
export_compile_commands.sh
Normal 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,
|
||||
Reference in New Issue
Block a user