From b79c4e942dba34ee1b2e5ce907629c7f77f88f07 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 19 Apr 2020 17:13:26 -0400 Subject: annotating index type for loops --- run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 run (limited to 'run') diff --git a/run b/run old mode 100644 new mode 100755 index 2237ab5..8957de6 --- 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 -- cgit v1.2.3