mirror of
https://github.com/golang/go
synced 2024-11-20 00:44:45 -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:
parent
ca0adeddd5
commit
c45f4b7145
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user