working compdb export
This commit is contained in:
8
export_compdb.sh
Normal file
8
export_compdb.sh
Normal 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
|
||||
Reference in New Issue
Block a user