From 1bd8a9f7b2b258c2bbe65b01cda96855173d50a3 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 28 Nov 2025 17:21:21 +0000 Subject: [PATCH] Add run component to build script, activated by passing argument `run` --- build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 77eeafa..e0f8495 100644 --- a/build.sh +++ b/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