Add run component to build script, activated by passing argument run
This commit is contained in:
8
build.sh
8
build.sh
@@ -2,9 +2,15 @@
|
||||
|
||||
set -xe
|
||||
|
||||
OUT="cw_tree.out"
|
||||
GFLAGS="-Wall -Wextra -Wswitch-enum -std=c++17"
|
||||
DFLAGS="-ggdb -fsanitize=address -fsanitize=undefined"
|
||||
CFLAGS="$GFLAGS $DFLAGS"
|
||||
LIBS="-lraylib -lm"
|
||||
|
||||
c++ $CFLAGS -o cw_tree.out src/node.cpp src/state.cpp src/worker.cpp src/numerics.cpp src/main.cpp $LIBS
|
||||
c++ $CFLAGS -o $OUT src/node.cpp src/state.cpp src/worker.cpp src/numerics.cpp src/main.cpp $LIBS
|
||||
|
||||
if [ "$1" = "run" ]
|
||||
then
|
||||
./$OUT
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user