Skip to content

Commit f83e0f6

Browse files
committed
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>
1 parent 4fd9455 commit f83e0f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

misc/ios/README

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ set to the clang wrapper that invokes clang for iOS. For example, this command r
77

88
GOOS=ios GOARCH=amd64 CGO_ENABLED=1 CC_FOR_TARGET=$(pwd)/../misc/ios/clangwrap.sh ./all.bash
99

10+
If CC_FOR_TARGET is not set when the toolchain is built (make.bash or all.bash), CC
11+
can be set at commond line. For example,
12+
13+
GOOS=ios GOARCH=amd64 CGO_ENABLED=1 CC=$(go env GOROOT)/misc/ios/clangwrap.sh go build
14+
15+
Setting CC is not necessary if the toolchain is built with CC_FOR_TARGET set.
16+
1017
To use the go tool to run individual programs and tests, put $GOROOT/bin into PATH to ensure
1118
the go_ios_$GOARCH_exec wrapper is found. For example, to run the archive/tar tests:
1219

0 commit comments

Comments
 (0)