summaryrefslogtreecommitdiff
path: root/crossbuild.bash
blob: 0f867d42d036072344c0cc1eeb093335315c12a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash -eu

cd "$(dirname "$0")"

B="go build -tags without_openssl"

set -x

GOOS=linux  GOARCH=arm   $B
GOOS=linux  GOARCH=arm64 $B
GOOS=darwin GOARCH=amd64 $B

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