diff options
author | Cherry Zhang <cherryyz@google.com> | 2020-12-28 14:33:14 -0500 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2020-12-29 20:34:36 +0000 |
commit | f83e0f6616b58e7c77684c1f1dc6575439fdf79b (patch) | |
tree | d4c80961ab0fe7cb3bc0c97f3b9d88065438726d /misc | |
parent | 4fd94558820100129b98f284e21b19fc27a99926 (diff) | |
download | go-f83e0f6616b58e7c77684c1f1dc6575439fdf79b.tar.gz go-f83e0f6616b58e7c77684c1f1dc6575439fdf79b.zip |
misc/ios: add to README how to build ios executables
Updates #43371, #43343.
Change-Id: I19386269245f2c20345c6cac7560089b8223e9f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/280153
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ios/README | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/ios/README b/misc/ios/README index 433bcdfd8f..5e71862728 100644 --- a/misc/ios/README +++ b/misc/ios/README @@ -7,6 +7,13 @@ set to the clang wrapper that invokes clang for iOS. For example, this command r GOOS=ios GOARCH=amd64 CGO_ENABLED=1 CC_FOR_TARGET=$(pwd)/../misc/ios/clangwrap.sh ./all.bash +If CC_FOR_TARGET is not set when the toolchain is built (make.bash or all.bash), CC +can be set at commond line. For example, + + GOOS=ios GOARCH=amd64 CGO_ENABLED=1 CC=$(go env GOROOT)/misc/ios/clangwrap.sh go build + +Setting CC is not necessary if the toolchain is built with CC_FOR_TARGET set. + To use the go tool to run individual programs and tests, put $GOROOT/bin into PATH to ensure the go_ios_$GOARCH_exec wrapper is found. For example, to run the archive/tar tests: |