mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-07 16:17:41 +00:00
build_dist.sh: make cross-compilation friendly
Signed-off-by: Nahum Shalman <nahamu@gmail.com>
This commit is contained in:
parent
95494a155e
commit
82e067e0ff
@ -16,7 +16,7 @@ if [ -n "${TS_USE_TOOLCHAIN:-}" ]; then
|
|||||||
go="./tool/go"
|
go="./tool/go"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval `$go run ./cmd/mkversion`
|
eval `GOOS=$($go env GOHOSTOS) GOARCH=$($go env GOHOSTARCH) $go run ./cmd/mkversion`
|
||||||
|
|
||||||
if [ "$1" = "shellvars" ]; then
|
if [ "$1" = "shellvars" ]; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user