aboutsummaryrefslogtreecommitdiff
path: root/misc/android
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2019-05-17 03:27:15 +0000
committerElias Naur <mail@eliasnaur.com>2019-05-17 06:01:17 +0000
commit9be2d46422c90068db8bb9d29cb025907c6100b0 (patch)
tree04fac94fe4c2a1822f8eb97360da5a93f7a1aa3c /misc/android
parent29f14f058d2ad7ebce4a6bbcd1909c0e1986eaaa (diff)
downloadgo-9be2d46422c90068db8bb9d29cb025907c6100b0.tar.gz
go-9be2d46422c90068db8bb9d29cb025907c6100b0.zip
misc/android: fix a typo in README
A cross C compiler should be specified when cross building go for android on x86 host. This CL fixes the typo in README. Change-Id: Ideda915364d9f7f0fcd53146abc1e74506a8a8e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/177777 Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com> Reviewed-by: Elias Naur <mail@eliasnaur.com>
Diffstat (limited to 'misc/android')
-rw-r--r--misc/android/README2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/android/README b/misc/android/README
index 38e7cf41e3..13b59d92f4 100644
--- a/misc/android/README
+++ b/misc/android/README
@@ -12,7 +12,7 @@ C compiler from the Android NDK. For example,
CGO_ENABLED=1 \
GOOS=android \
GOARCH=arm64 \
- CC=$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang \
+ CC_FOR_TARGET=$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang \
./all.bash
To run tests on the Android device, add the bin directory to PATH so the