build_dist.sh: make cross-compilation friendly

Signed-off-by: Nahum Shalman <nahamu@gmail.com>
This commit is contained in:
Nahum Shalman 2023-03-16 13:30:41 +00:00 committed by Dave Anderson
parent 95494a155e
commit 82e067e0ff
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ if [ -n "${TS_USE_TOOLCHAIN:-}" ]; then
go="./tool/go"
fi
eval `$go run ./cmd/mkversion`
eval `GOOS=$($go env GOHOSTOS) GOARCH=$($go env GOHOSTARCH) $go run ./cmd/mkversion`
if [ "$1" = "shellvars" ]; then
cat <<EOF