aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/justfile b/justfile
index 71da21c..bea5863 100644
--- a/justfile
+++ b/justfile
@@ -3,15 +3,18 @@ build N="1":
set -e
if [[ {{N}} = 1 ]]; then
cc=gcc
+ cflags=
target=ducc
elif [[ {{N}} = 2 ]]; then
cc=./build/ducc
+ cflags="${CFLAGS:-}"
target=ducc{{N}}
else
cc="./build/ducc$(({{N}} - 1))"
+ cflags="${CFLAGS:-}"
target=ducc{{N}}
fi
- CC="$cc" TARGET="$target" make
+ CC="$cc" CFLAGS="$cflags" TARGET="$target" make
build-upto-5-gen:
just build 1