build_dist.sh: make cross-compilation friendly for env CC specified

Signed-off-by: ayanamist <ayanamist@gmail.com>
pull/8001/head
ayanamist 2 years ago committed by Dave Anderson
parent 633d08bd7b
commit 042f82ea32

@ -16,7 +16,7 @@ if [ -n "${TS_USE_TOOLCHAIN:-}" ]; then
go="./tool/go" go="./tool/go"
fi fi
eval `GOOS=$($go env GOHOSTOS) GOARCH=$($go env GOHOSTARCH) $go run ./cmd/mkversion` eval `CGO_ENABLED=0 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…
Cancel
Save