aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-10 00:28:14 -0400
committeriamcheeseman <[email protected]>2026-05-10 00:28:14 -0400
commit576bd27e11ec70bdbd1b9a644d2e227b57586337 (patch)
tree2dc41e3f88bb95568f73ee372fc35512afcbcf9b /build.sh
parent9ed5698b3c74c7ce1784d3bebe2aa73d5a0c319d (diff)
i ain't splitting alla this up
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)