aboutsummaryrefslogtreecommitdiff
path: root/src/androidtest.bash
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2015-10-26 11:15:09 -0400
committerDavid Crawshaw <crawshaw@golang.org>2015-10-26 15:20:02 +0000
commit0be3c4093d2ac0c59c392298f08a58bc09fd2616 (patch)
tree4f24cb833be5a9dc54fac0feb847441f60a2c57f /src/androidtest.bash
parent21f35b33c21ae047b366c548d6d5b926a3d93f53 (diff)
downloadgo-0be3c4093d2ac0c59c392298f08a58bc09fd2616.tar.xz
androidtest.bash: set GOARM=7
It's the only ARM version we have ever supported on android. (Not setting it caused some builder timeouts.) Change-Id: I26061434252ff2a236bb31d95787a1c582d24b3f Reviewed-on: https://go-review.googlesource.com/16295 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Diffstat (limited to 'src/androidtest.bash')
-rwxr-xr-xsrc/androidtest.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/androidtest.bash b/src/androidtest.bash
index 326bce6608..84c2222b24 100755
--- a/src/androidtest.bash
+++ b/src/androidtest.bash
@@ -23,6 +23,14 @@ if [ "$GOOS" != "android" ]; then
exit 1
fi
+if [ -z $GOARM ]; then
+ export GOARM=7
+fi
+if [ "$GOARM" != "7" ]; then
+ echo "android only supports GOARM=7, got GOARM=$GOARM" 1>&2
+ exit 1
+fi
+
export CGO_ENABLED=1
unset GOBIN