1
0
mirror of https://github.com/golang/go synced 2024-11-08 01:56:14 -07:00
go/src/cmd/dist
Mikio Hara bafa0275db cmd/dist: disable misc/cgo/fortran test on dragonfly
Updates #14544.

Change-Id: I24ab8e6f9ad9d290a672216fc2f50f78c3ed8812
Reviewed-on: https://go-review.googlesource.com/21014
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-03-23 00:43:30 +00:00
..
build.go cmd/dist: add "s390x" to okgoarch and cgoEnabled 2016-03-21 07:31:00 +00:00
buildgo.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
buildruntime.go all: single space after period. 2016-03-02 00:13:47 +00:00
buildtool.go cmd/dist: build bootstrap toolchain with -l 2016-03-14 21:30:33 +00:00
cpuid_386.s all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cpuid_amd64.s all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cpuid_default.s all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
deps.go dwbug/elf: support old-style compressed DWARF 2015-12-03 20:53:04 +00:00
main.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
mkdeps.bash cmd/dist: rewrite mkdeps.bash to work on OS X 2015-11-19 20:53:50 +00:00
README
sys_default.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sys_windows.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
test.go cmd/dist: disable misc/cgo/fortran test on dragonfly 2016-03-23 00:43:30 +00:00
util_gc.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
util_gccgo.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
util.go cmd/dist: allow gohostarch to be s390x 2016-03-22 01:04:26 +00:00
vfp_arm.s all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
vfp_default.s all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00

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.