aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-07-19 21:59:42 +0100
committerMartin Ashby <martin@ashbysoft.com>2024-07-19 21:59:42 +0100
commit6257db275bd9bb5794effaa9f7c4f5d6995024ce (patch)
tree75ab2b2ffba7e2d446c686ad5f7c2c67cde88c20 /deploy.sh
parent54b7021b063a81bc1655a6b4519b9a41cd6ed30b (diff)
downloadmfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.tar.gz
mfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.tar.bz2
mfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.tar.xz
mfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.zip
Convert to using pg.zig instead of wrapping libpq for postgresql access
Pure zig also means cross compilation works again!
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh10
1 files changed, 4 insertions, 6 deletions
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