compile_commands_cmake.sh
168 bytes
1cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build
2mv build/compile_commands.json .
3sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json
1cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build
2mv build/compile_commands.json .
3sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json