diff options
| author | Elias Naur <mail@eliasnaur.com> | 2019-03-17 17:48:57 +0100 |
|---|---|---|
| committer | Elias Naur <mail@eliasnaur.com> | 2019-03-21 01:34:26 +0000 |
| commit | ba965640a45f5d94976c3ad6c92396cab539155a (patch) | |
| tree | 0489e1660afd2712d75a22f0f600e63a9ead33d8 /src/os/exec/exec.go | |
| parent | 03a79e94ac72f2425a6da0b399dc2f660cf295b6 (diff) | |
| download | go-ba965640a45f5d94976c3ad6c92396cab539155a.tar.xz | |
cmd/link/internal/ld: enable bitcode builds for iOS, tvOS, watchOS
The Go toolchain cannot output bitcode, but there is a trick where
object code can be marked with an __asm section, persuading the
Apple toolchain to include our object code in bitcode builds.
This enables Go builds with bitcode enabled; the next CL adds
the necessary plumbing for building on tvOS and watchOS.
Thanks to Aman Gupta for the trick.
Test is added two CLs from here.
Fixes #22395 (at least until Apple tightens bitcode requirements.)
Change-Id: Ic1c1448c4d46222bb3dd097b1f4df80848051e5f
Reviewed-on: https://go-review.googlesource.com/c/go/+/168320
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
