From 775ff9ce7b45c22cfba6918c13359bf89461b3e1 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 24 Dec 2025 13:04:38 +0100 Subject: ir: arena-backed linked list for uselists Is much simpler than the growable buffers, seems to be just as efficient if not a little faster when benchmarked. --- bootstrap.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bootstrap.sh') diff --git a/bootstrap.sh b/bootstrap.sh index a65824e..1761ac5 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -7,10 +7,14 @@ test -n "$cc" || cc=cc opt="$O" test -n "$opt" || opt= -cflags="-std=c11" +cflags=$CFLAGS +test -n "$cflags" || : ${cflags:="-std=c11"} +if test -n "$V"; then + opt="$opt -v" +fi src=$(grep -o '\([_A-Za-z0-9/]\)\+\.c' < Makefile) X() { - echo "> $@" | ([ x"$V" == x1 ] && cat || sed -s 's/\([^ ]\+\.c \?\)\{10\}$/.../') + echo "> $@" | (test -n "$V" && cat || sed -s 's/\([^ ]\+\.c \?\)\{10\}$/.../') $@ } echo "== Stage 0 (compiling with $cc) ==" -- cgit v1.2.3