From 6910f8670502b57cc442d3c45c5e5be1165b3d2c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 5 Jun 2021 15:07:18 +0200 Subject: crossbuild.bash: also build for Apple M1 --- crossbuild.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crossbuild.bash') 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 -- cgit v1.2.3