From a2f66a04c52a491fe476e2eafb48cc412c848567 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 5 May 2025 08:31:40 +0900 Subject: fix justfile --- justfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index dd8e238..a997125 100644 --- a/justfile +++ b/justfile @@ -7,7 +7,12 @@ build N="1": if [[ {{N}} = 1 ]]; then gcc -g -O0 -o p4dcc main.c {{CFLAGS}} else - ./p4dcc < main.c > main{{N}}.s + if [[ {{N}} = 2 ]]; then + prev="" + else + prev=$(({{N}} - 1)) + fi + "./p4dcc${prev}" < main.c > main{{N}}.s gcc -s -Wl,-z,noexecstack -o p4dcc{{N}} main{{N}}.s fi -- cgit v1.2.3-70-g09d2