From 6257db275bd9bb5794effaa9f7c4f5d6995024ce Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 19 Jul 2024 21:59:42 +0100 Subject: Convert to using pg.zig instead of wrapping libpq for postgresql access Pure zig also means cross compilation works again! --- deploy.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh index 91e476f..48f8c79 100755 --- a/deploy.sh +++ b/deploy.sh @@ -7,12 +7,10 @@ zig build # Build comments app pushd comments -if [ $(uname -m) != "aarch64" ] -then - echo "must build on aarch64 for now" - exit -fi -zig build -Doptimize=ReleaseSafe -Dcpu=baseline +zig build \ + -Doptimize=ReleaseSafe \ + -Dtarget=aarch64-linux-gnu \ + -Dcpu=baseline popd # Copy static site -- cgit v1.2.3-ZIG