go/src/cmd/dist
Elias Naur 431d58da69 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>
2020-10-22 17:13:24 +00:00
..
README
build.go all: add GOOS=ios GOARCH=amd64 target for the ios simulator 2020-10-22 17:13:24 +00:00
buildgo.go
buildruntime.go all: implement GO386=softfloat 2020-10-06 22:49:38 +00:00
buildtool.go cmd/cgo: split gofrontend mangling checks into cmd/internal/pkgpath 2020-10-05 18:36:57 +00:00
doc.go
imports.go cmd/dist: support GOROOT vendoring 2019-10-28 21:45:30 +00:00
main.go cmd/dist: detect gohostarch for openbsd/mips64 2020-10-18 08:32:19 +00:00
sys_default.go
sys_windows.go
test.go cmd/link: support cgo internal/linking on darwin/arm64 2020-10-20 02:25:52 +00:00
test_linux.go
util.go all: remove scattered remnants of darwin/arm 2020-04-08 18:35:49 +00:00
util_gc.go all: drop 387 support 2020-10-02 00:00:51 +00:00
util_gccgo.go all: drop 387 support 2020-10-02 00:00:51 +00:00
vfp_arm.s
vfp_default.s

README

This program, dist, is the bootstrapping tool for the Go distribution.

As of Go 1.5, dist and other parts of the compiler toolchain are written
in Go, making bootstrapping a little more involved than in the past.
The approach is to build the current release of Go with an earlier one.

The process to install Go 1.x, for x ≥ 5, is:

1. Build cmd/dist with Go 1.4.
2. Using dist, build Go 1.x compiler toolchain with Go 1.4.
3. Using dist, rebuild Go 1.x compiler toolchain with itself.
4. Using dist, build Go 1.x cmd/go (as go_bootstrap) with Go 1.x compiler toolchain.
5. Using go_bootstrap, build the remaining Go 1.x standard library and commands.

NOTE: During the transition from the old C-based toolchain to the Go-based one,
step 2 also builds the parts of the toolchain written in C, and step 3 does not
recompile those.

Because of backward compatibility, although the steps above say Go 1.4,
in practice any release ≥ Go 1.4 but < Go 1.x will work as the bootstrap base.

See golang.org/s/go15bootstrap for more details.

Compared to Go 1.4 and earlier, dist will also take over much of what used to
be done by make.bash/make.bat/make.rc and all of what used to be done by
run.bash/run.bat/run.rc, because it is nicer to implement that logic in Go
than in three different scripting languages simultaneously.