Setup variable in build script for user to adjust thread timers

This commit is contained in:
2025-12-12 05:42:13 +00:00
parent ca3bb64aae
commit 82604480c0

View File

@@ -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;