]> Cypherpunks repositories - gostls13.git/commit
all: add GOOS=ios GOARCH=amd64 target for the ios simulator
authorElias Naur <mail@eliasnaur.com>
Tue, 20 Oct 2020 09:01:46 +0000 (11:01 +0200)
committerElias Naur <mail@eliasnaur.com>
Thu, 22 Oct 2020 17:13:24 +0000 (17:13 +0000)
commit431d58da69e8c36d654876e7808f971c5667649c
treecba83426b4e3e762e128bbcd2fb6fe25573d2cc4
parentf8aecbbff5b85e67fee95033b3a14f3df665ea18
all: add GOOS=ios GOARCH=amd64 target for the ios simulator

The Go toolchain has supported the simulator for years, but always in
buildmode=c-archive which is intrinsically externally linked and PIE.

This CL moves that support from GOOS=darwin GOARCH=amd64 -tags=ios to
just GOOS=ios GOARCH=amd64 to match the change for iOS devices.

This change also forces external linking and defaults to buildmode=pie
to support Go binaries in the default buildmode to run on the simulator.

CL 255257 added the necessary support to the exec wrapper.

Updates #38485
Fixes #42100

Change-Id: I6e6ee0e8d421be53b31e3d403880e5b9b880d031
Reviewed-on: https://go-review.googlesource.com/c/go/+/263798
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: Elias Naur <mail@eliasnaur.com>
src/cmd/dist/build.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/work/init.go
src/cmd/internal/sys/supported.go
src/cmd/link/internal/ld/config.go
src/runtime/rt0_ios_amd64.s [new file with mode: 0644]