Impliment a build-dev.sh for ease of development

This commit is contained in:
Rebekah 2024-02-14 08:42:23 -05:00
parent e93efe431a
commit a9eefd0e00
Signed by: oneechanhax
GPG Key ID: 183EB7902964DAE5

13
build-dev.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh -e
if [ -f CMakeLists.txt ]; then
mkdir -p build
cd build
fi
if ! [ -f CMakeCache.txt ]; then
cmake -DCMAKE_BUILD_TYPE=Debug -DUNITY_BUILDS=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cp -v compile_commands.json ../
fi
make -j$(nproc)