blob: 71e6e9aebc5ca438dc213a7351f2790faf7106bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|