From 8646e6f693fd935c6cb81e776a6c92a3fd093a33 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 23 Aug 2025 17:41:23 +0900 Subject: feat: output executable using gcc --- justfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index 3011133..d6528a9 100644 --- a/justfile +++ b/justfile @@ -4,16 +4,16 @@ build N="1": #!/usr/bin/env bash set -e if [[ {{N}} = 1 ]]; then - gcc -g -O0 -o ducc main.c + cc=gcc + target=ducc + elif [[ {{N}} = 2 ]]; then + cc=./ducc + target=ducc{{N}} else - if [[ {{N}} = 2 ]]; then - prev="" - else - prev=$(({{N}} - 1)) - fi - "./ducc${prev}" main.c > main{{N}}.s - gcc -s -o ducc{{N}} main{{N}}.s + cc="./ducc$(({{N}} - 1))" + target=ducc{{N}} fi + "$cc" -g -O0 -o "$target" main.c build-upto-5-gen: just build 1 -- cgit v1.2.3-70-g09d2