aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-05 08:31:40 +0900
committernsfisis <nsfisis@gmail.com>2025-05-05 08:31:40 +0900
commita2f66a04c52a491fe476e2eafb48cc412c848567 (patch)
treecbafa1dbbbe4ca99b1762104a033a7a7b997f3dd
parent6a23498962a69238ac142c3151357fb3730bfa9f (diff)
downloadP4Dcc-a2f66a04c52a491fe476e2eafb48cc412c848567.tar.gz
P4Dcc-a2f66a04c52a491fe476e2eafb48cc412c848567.tar.zst
P4Dcc-a2f66a04c52a491fe476e2eafb48cc412c848567.zip
fix justfile
-rw-r--r--justfile7
1 files changed, 6 insertions, 1 deletions
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