vulkzample/generate-lspinfo.sh
Rebekah Rowe 5b4cae40f9
All checks were successful
ci/woodpecker/push/woodpecker.json Pipeline was successful
Created a new script to automaticly grab LSP info for you.
2024-07-14 10:19:54 -04:00

23 lines
698 B
Bash

#/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