try to make code performant, lets see if this will work.
This commit is contained in:
@@ -21,6 +21,17 @@ clean_build() {
|
||||
make -j"$(nproc)"
|
||||
}
|
||||
|
||||
release_build() {
|
||||
if [ -d "build" ]; then
|
||||
rm -rf "build"
|
||||
fi
|
||||
mkdir "build"
|
||||
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||
make -j"$(nproc)"
|
||||
}
|
||||
|
||||
run_executable() {
|
||||
./build/SubWave
|
||||
}
|
||||
@@ -38,6 +49,9 @@ case "${1:-build}" in
|
||||
run|exec|r)
|
||||
run_executable
|
||||
;;
|
||||
release|rb)
|
||||
release_build
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {build|clean|cleanbuild|cb}"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user