diff --git a/build/build.sh b/build/build.sh index 2c1b151..cd4c6d9 100755 --- a/build/build.sh +++ b/build/build.sh @@ -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 ..