Setup variable in build script for user to adjust thread timers
This commit is contained in:
5
build.sh
5
build.sh
@@ -6,7 +6,8 @@ OUT="cw_tree.out"
|
|||||||
GFLAGS="-Wall -Wextra -Wswitch-enum -std=c++17"
|
GFLAGS="-Wall -Wextra -Wswitch-enum -std=c++17"
|
||||||
DFLAGS="-ggdb -fsanitize=address -fsanitize=undefined"
|
DFLAGS="-ggdb -fsanitize=address -fsanitize=undefined"
|
||||||
RFLAGS="-O2"
|
RFLAGS="-O2"
|
||||||
CFLAGS="$GFLAGS $DFLAGS"
|
VARFLAGS="-DTHREAD_PAUSE_MS=1000 -DTHREAD_GENERAL_MS=1"
|
||||||
|
CFLAGS="$GFLAGS $VARFLAGS $DFLAGS"
|
||||||
LIBS="-lraylib -lm"
|
LIBS="-lraylib -lm"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
@@ -18,7 +19,7 @@ then
|
|||||||
build && ./$OUT
|
build && ./$OUT
|
||||||
elif [ "$1" = "release" ]
|
elif [ "$1" = "release" ]
|
||||||
then
|
then
|
||||||
CFLAGS="$GFLAGS $RFLAGS"
|
CFLAGS="$GFLAGS $VARFLAGS $RFLAGS"
|
||||||
build;
|
build;
|
||||||
else
|
else
|
||||||
build;
|
build;
|
||||||
|
|||||||
Reference in New Issue
Block a user