From ab33536639726a2a811f9d76cff143a8bb5d795f Mon Sep 17 00:00:00 2001 From: somebody_master Date: Tue, 21 Feb 2023 23:28:44 +0100 Subject: [PATCH] Fix soft link to compile_commands.json Signed-off-by: somebody_master --- build/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ..