summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rwxr-xr-x[-rw-r--r--]run5
1 files changed, 4 insertions, 1 deletions
diff --git a/run b/run
index 2237ab5..8957de6 100644..100755
--- a/run
+++ b/run
@@ -1,4 +1,7 @@
#!/bin/sh
+if [ "$CC" = "" ]; then
+ CC=tcc
+fi
if [ "$2" = "" ]; then
tocf=test.toc
else
@@ -12,7 +15,7 @@ fi
./toc $tocf || exit 1
if [ "$1" = "c" ]; then
- gcc out.c -g -Wno-builtin-declaration-mismatch && ./a.out
+ $CC out.c -g -Wno-builtin-declaration-mismatch && ./a.out
elif [ "$1" = "pc" ]; then
cat out.c
fi