Impliment a build-dev.sh for ease of development
This commit is contained in:
parent
e93efe431a
commit
a9eefd0e00
13
build-dev.sh
Executable file
13
build-dev.sh
Executable 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)
|
Loading…
x
Reference in New Issue
Block a user