From eb81938b26ae463e299bbf3c735cd0b2df2fae0d Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 30 Nov 2025 18:41:06 +0100 Subject: driver: add -run option like tcc convenient for quick testing --- bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap.sh') diff --git a/bootstrap.sh b/bootstrap.sh index 56f0477..e4acdc4 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,11 +1,11 @@ #!/bin/env sh -set -euo pipefail +set -eo pipefail cc=gcc cflags="-std=c11" src=$(grep -o '\([_A-Za-z0-9/]\)\+\.c' < Makefile) X() { - echo "> $@" | sed -s 's/\([^ ]\+\.c \?\)\{10\}$/.../' + echo "> $@" | ([ x"$V" == x1 ] && cat || sed -s 's/\([^ ]\+\.c \?\)\{10\}$/.../') $@ } echo "== Stage 0 (compiling with $cc) ==" -- cgit v1.2.3