Commit 2d70d603 authored by Russ Cox's avatar Russ Cox

sanity check environment variables better.

Fixes #12.

R=agl1
CC=golang-dev
https://golang.org/cl/152055
parent ea5440dd
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment