Clean if complile_commands.json doesn't exist
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
parent
8884aea1dd
commit
0d03a90f08
@ -76,6 +76,7 @@ function build_db() {
|
||||
cd "$_build_folder" || clean_exit 1 "$_error_build_folder"
|
||||
|
||||
if [ ! -f "../${_bin_folder}/compile_commands.json" ]; then
|
||||
clean "$_default_platform"
|
||||
bear --output "../${_bin_folder}/compile_commands.json" -- scons platform="$_default_platform"
|
||||
else
|
||||
bear --append --output "../${_bin_folder}/compile_commands.json" -- scons platform="$_default_platform"
|
||||
|
Loading…
Reference in New Issue
Block a user