aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to '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