aboutsummaryrefslogtreecommitdiff
path: root/crossbuild.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-06-05 15:07:18 +0200
committerJakob Unterwurzacher2021-06-05 15:07:18 +0200
commit6910f8670502b57cc442d3c45c5e5be1165b3d2c (patch)
treefc0efa18b1cdd8b5bc7c62fe843dbd7fa5d32aef /crossbuild.bash
parente48f2377ec46f247d4db04cf8031702d0684c086 (diff)
crossbuild.bash: also build for Apple M1
Diffstat (limited to 'crossbuild.bash')
-rwxr-xr-xcrossbuild.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/crossbuild.bash b/crossbuild.bash
index 13b0bc3..0f3963f 100755
--- a/crossbuild.bash
+++ b/crossbuild.bash
@@ -11,8 +11,11 @@ set -x
GOOS=linux GOARCH=arm GOARM=7 $B
GOOS=linux GOARCH=arm64 $B
-# MacOS
+# MacOS on Intel
GOOS=darwin GOARCH=amd64 $B
+# MacOS on Apple Silicon M1
+GOOS=darwin GOARCH=arm64 $B
+
# The cross-built binary is not useful on the compile host.
rm gocryptfs