commit | 8a8a989f4807eb8c387ee9d4ccf11aee9c6aaca3 | [log] [tgz] |
---|---|---|
author | Elias Naur <elias.naur@gmail.com> | Fri Feb 23 15:45:26 2018 +0100 |
committer | Elias Naur <elias.naur@gmail.com> | Fri Feb 23 15:52:32 2018 +0000 |
tree | d289ea92867e3a6f508abdbee537d93b7618cab3 | |
parent | cdc07529f8e8f42b21188429dc752668dc36467f [diff] |
cmd/gomobile: run go install in c-shared mode only if NDK is set A check for the NDK was missing from the pre-install of the standard library for each Android GOARCH. If the NDK wasn't set, the go install invocation would silently use the host GOARCH and GOOS and only fail if no host gcc was found for runtime/cgo. Discovered while setting up gomobile on a clean Windows machine. With the go 1.10 cache go installing the standard library might be pointless, but let's wait a little before removing it. Change-Id: I880eed32aad23fda10ae92bd35be2ce9b03ddb86 Reviewed-on: https://go-review.googlesource.com/96636 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
The Go mobile repository holds packages and build tools for using Go on mobile platforms.
Package documentation as a starting point:
The Go Mobile project is experimental. Use this at your own risk. While we are working hard to improve it, neither Google nor the Go team can provide end-user support.
This is early work and installing the build system requires Go 1.5. Follow the instructions on golang.org/wiki/Mobile to install the gomobile command, build the basic and the bind example apps.
Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.