1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:24:43 -07:00

iostest.bash: warn if GOARCH is not correct

Fixes #10334

Change-Id: I468230870ca2afc691ce879707dac34e513e1b9e
Reviewed-on: https://go-review.googlesource.com/8442
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2015-04-03 11:02:32 -07:00
parent ca0adeddd5
commit c45f4b7145

View File

@ -20,6 +20,10 @@ if [ "$GOOS" != "darwin" ]; then
echo "iostest.bash requires GOOS=darwin, got GOOS=$GOOS" 1>&2
exit 1
fi
if [ "$GOARCH" != "arm" ] && [ "$GOARCH" != "arm64" ]; then
echo "iostest.bash requires GOARCH=arm or GOARCH=arm64, got GOARCH=$GOARCH" 1>&2
exit 1
fi
if [ "$GOARCH" == "arm" ]; then
export GOARM=7
fi