diff options
| author | Elias Naur <elias.naur@gmail.com> | 2018-03-06 16:11:59 +0100 |
|---|---|---|
| committer | Elias Naur <elias.naur@gmail.com> | 2018-03-06 16:08:04 +0000 |
| commit | ad87a67cdf24c2ac7bfb0958c506e148e7390d0c (patch) | |
| tree | 018a4a5b1b134ce7cd7c2837640c06021e59de88 /src/androidtest.bash | |
| parent | 084143d84434b66f3d75afcdb609b71097a07e65 (diff) | |
| download | go-ad87a67cdf24c2ac7bfb0958c506e148e7390d0c.tar.xz | |
cmd/dist: default to GOARM=7 on android
Auto-detecting GOARM on Android makes as little sense as for nacl/arm
and darwin/arm.
Also update androidtest.sh to not require GOARM set.
Change-Id: Id409ce1573d3c668d00fa4b7e3562ad7ece6fef5
Reviewed-on: https://go-review.googlesource.com/98875
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/androidtest.bash')
| -rwxr-xr-x | src/androidtest.bash | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/androidtest.bash b/src/androidtest.bash index a790f95920..773509f547 100755 --- a/src/androidtest.bash +++ b/src/androidtest.bash @@ -23,10 +23,7 @@ if [ "$GOOS" != "android" ]; then exit 1 fi -if [ -z $GOARM ]; then - export GOARM=7 -fi -if [ "$GOARM" != "7" ]; then +if [ -n "$GOARM" ] && [ "$GOARM" != "7" ]; then echo "android only supports GOARM=7, got GOARM=$GOARM" 1>&2 exit 1 fi |
