#/bin/sh -e echo "Going to clean your ./build/ , then build cmake to get the commands, then clean your ./build/ again. Turn away now if you do not want this!" echo "Please wait 10 seconds to confirm..." sleep 10s SCRIPT_PATH="$(readlink -f "$0")" SCRIPT_DIR="$(dirname "$SCRIPT_PATH")" cd "$SCRIPT_DIR" sh clean.sh EXT_CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug" EXT_CMAKE_OPTIONS="$EXT_CMAKE_OPTIONS -DENABLE_ASAN=ON" EXT_CMAKE_OPTIONS="$EXT_CMAKE_OPTIONS -DENABLE_TESTS=OFF" EXT_CMAKE_OPTIONS="$EXT_CMAKE_OPTIONS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON" cmake $EXT_CMAKE_OPTIONS -S ./ -B ./build/ cp -v build/compile_commands.json ./ sed -i 's/gnu++23/c++2b/g' ./compile_commands.json sh clean.sh