summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-04-19 17:13:26 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-04-19 17:13:26 -0400
commitb79c4e942dba34ee1b2e5ce907629c7f77f88f07 (patch)
treeb89f880afde67f1dd6256a1df4bd772f67c1513a /run
parent30caeaab671f7fe7d7582ce7e645302a139c15a0 (diff)
annotating index type for loops
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