Fix soft link to compile_commands.json

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
Somebody Master 2023-02-21 23:28:44 +01:00
parent 44fdd62942
commit ab33536639

View File

@ -78,7 +78,8 @@ function build_db() {
bear -- scons platform="$_default_platform"
if [ ! -f "../{$_bin_folder}/compile_commands.json" ]; then
ln -s compile_commands.json "../${_bin_folder}/compile_commands.json"
cd "../$_bin_folder" || clean_exit 1 "$_error_bin_folder"
ln -s "../${_build_folder}/compile_commands.json" ./
fi
cd ..