From 957c64c7b8b5e98d8a03dd84c7e27e7991fb9dbc Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Mon, 6 Apr 2026 17:04:05 -0400 Subject: Initial commit --- run.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 run.sh (limited to 'run.sh') diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..71e6e9a --- /dev/null +++ b/run.sh @@ -0,0 +1,14 @@ +#! /bin/bash + +# This script could be replaced by -run on TCC, but support for other compilers +# should be at least somewhat maintained. + +./build.sh $@ && + +if [[ "${@: -1}" == "gdb" ]]; then + gdb ./uengine +elif [[ "${@: -1}" == "valgrind" ]]; then + valgrind --leak-check=full ./uengine +else + time ./uengine +fi -- cgit v1.3-2-g0d8e