summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 82d4c4c..007bddd 100755
--- a/build.sh
+++ b/build.sh
@@ -2,4 +2,10 @@ if [ ! -d "bin" ]; then
mkdir bin
fi
-gcc -Wall -Wextra -pedantic -lm -o bin/linalg_debug debug.c tests.c utils.c matrix.c vector.c
+CC="gcc"
+
+if [ ! -z "tcc -v" ]; then
+ CC="tcc"
+fi
+
+$CC -Wall -Wextra -pedantic -lm -o bin/linalg_debug debug.c tests.c utils.c matrix.c vector.c