scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 3d6a2a3efbf19ed320746f9abddfea8091616309
parent e8e9a686078131d6daf0168af15352c2c6a9f219
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Sat, 16 Nov 2019 13:43:52 +0100

Remove generated binaries

Update Makefile
Update gensys.sh

Diffstat:
Mtests/libc/execute/Makefile | 2+-
Mtests/libc/execute/chktest.sh | 5+++--
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/libc/execute/Makefile b/tests/libc/execute/Makefile @@ -13,4 +13,4 @@ tests: @CFLAGS='' SCCPREFIX=$(ROOT) ./chktest.sh libc-tests.lst clean: - rm -f *.o *core a.out test.log + rm -f *.o *core test.log `awk '{print $$1}' libc-tests.lst` diff --git a/tests/libc/execute/chktest.sh b/tests/libc/execute/chktest.sh @@ -3,14 +3,15 @@ file=${1?' empty input file'} tmp1=`mktemp` tmp2=`mktemp` -trap "rm -f a.out *.o $tmp1 $tmp2; exit" 0 1 2 3 15 +bins=`awk '{print $1}' libc-tests.lst` +trap "rm -f *.o $bins $tmp1 $tmp2; exit" 0 1 2 3 15 ulimit -c 0 rm -f test.log while read i state do state=${state:-"\t"} - rm -f a.out *.o $tmp1 $tmp2 + rm -f *.o $tmp1 $tmp2 (echo $i ./cc.sh $CFLAGS -o $i $i.c