Skip to content

Commit f95ef94

Browse files
benshi001Elias Naur
authored and
Elias Naur
committed
misc/android: add more information to README
Add more information to misc/android/README for developing arm and arm64 with an Android environment. Change-Id: I0c88996b6ab0c41946a2c7e69e9c92ec7bb3be27 Reviewed-on: https://go-review.googlesource.com/112276 Reviewed-by: Elias Naur <[email protected]>
1 parent bf23a4e commit f95ef94

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

misc/android/README

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,17 @@ mobile subrepository:
88

99
To run the standard library tests, see androidtest.bash. Run it as
1010

11-
CC_FOR_TARGET=.../ndk-gcc GOARCH=arm GOARM=7 ./androidtest.bash
11+
CC_FOR_TARGET=$STANDALONE_NDK_PATH/bin/clang GOARCH=arm64 ./androidtest.bash
12+
13+
To create a standalone android NDK tool chain, follow the instructions on
14+
15+
https://developer.android.com/ndk/guides/standalone_toolchain
16+
17+
To run tests on the Android device, add the bin directory to PATH so the
18+
go tool can find the go_android_$GOARCH_exec wrapper generated by
19+
androidtest.bash. Then, use the same GOARCH as when androidtest.bash ran
20+
and set GOOS to android. For example, to run the go1 benchmarks
21+
22+
export PATH=$GOROOT/bin:$PATH
23+
cd $GOROOT/test/bench/go1/
24+
GOOS=android GOARCH=arm64 go test -bench=. -count=N -timeout=T

0 commit comments

Comments
 (0)