aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 8ac7ad2..ac3fb6d 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-cc=gcc
+cc=cc
cflags=(-Wall -Wextra -std=gnu99 -O2)
ldflags=(-lm)
@@ -26,6 +26,7 @@ if [ ! -z "$clean" ]; then
exit
fi
+[ ! -z "$debug" ] && cc=tcc # TCC is faster for debug
[ ! -z "$debug" ] && cflags+=(-g -ggdb -rdynamic)
teensy_cflags=(${cflags[@]} -fPIC -Iteensy -Iplatform/$platform)