mirror of
https://github.com/golang/go
synced 2024-11-13 18:50:24 -07:00
sanity check environment variables better.
Fixes #12. R=agl1 CC=golang-dev https://golang.org/cl/152055
This commit is contained in:
parent
ea5440dd42
commit
2d70d60392
@ -20,6 +20,23 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$GOARCH" in
|
||||
amd64 | 386 | arm)
|
||||
;;
|
||||
*)
|
||||
echo '$GOARCH is set to <'$GOARCH'>, must be amd64, 386, or arm' 1>&2
|
||||
exit 1
|
||||
esac
|
||||
|
||||
case "$GOOS" in
|
||||
darwin | linux | nacl)
|
||||
;;
|
||||
*)
|
||||
echo '$GOOS is set to <'$GOOS'>, must be darwin, linux, or nacl' 1>&2
|
||||
exit 1
|
||||
esac
|
||||
|
||||
|
||||
bash clean.bash
|
||||
|
||||
rm -f $GOBIN/quietgcc
|
||||
|
Loading…
Reference in New Issue
Block a user