aboutsummaryrefslogtreecommitdiff
path: root/crossbuild.bash
blob: 12671fe6725e24f96c0db0ec7d1da761573b9788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -eu

cd "$(dirname "$0")"

B="go build -tags without_openssl"

set -x

# See https://github.com/golang/go/wiki/GoArm
GOOS=linux  GOARCH=arm   GOARM=7 $B
GOOS=linux  GOARCH=arm64 $B

# MacOS
GOOS=darwin GOARCH=amd64 $B

# The cross-built binary is not useful on the compile host.
rm gocryptfs