]> Cypherpunks repositories - gostls13.git/commit
build: require old Go to build new Go (and convert cmd/dist to Go)
authorRuss Cox <rsc@golang.org>
Wed, 7 Jan 2015 16:38:00 +0000 (11:38 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 10 Jan 2015 19:16:00 +0000 (19:16 +0000)
commit20a10e7ddd1b2305f1279043ec281301c9199359
tree674cac1232c8bb87c64c1c42b306808769a9ac00
parentad6ee36cac122894f7ea4043289c10a50e48ac01
build: require old Go to build new Go (and convert cmd/dist to Go)

This CL introduces the bootstrap requirement that in order to
build the current release (or development version) of Go, you
need an older Go release (1.4 or newer) already installed.
This requirement is the whole point of this CL.

To enforce the requirement, convert cmd/dist from C to Go.

With this bootstrapping out of the way, we can move on to
replacing other, larger C programs like the Go compiler,
the assemblers, and the linker.

See golang.org/s/go15bootstrap for details.

Change-Id: I53fd08ddacf3df9fae94fe2c986dba427ee4a21d
Reviewed-on: https://go-review.googlesource.com/2470
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
16 files changed:
src/cmd/dist/README
src/cmd/dist/build.go
src/cmd/dist/buildgc.go
src/cmd/dist/buildgo.go
src/cmd/dist/buildruntime.go
src/cmd/dist/cpuid_386.s [new file with mode: 0644]
src/cmd/dist/cpuid_amd64.s [new file with mode: 0644]
src/cmd/dist/cpuid_default.s [new file with mode: 0644]
src/cmd/dist/main.go
src/cmd/dist/sys_default.go [new file with mode: 0644]
src/cmd/dist/sys_windows.go [new file with mode: 0644]
src/cmd/dist/util.go
src/cmd/dist/vfp_arm.s [new file with mode: 0644]
src/cmd/dist/vfp_default.s [new file with mode: 0644]
src/make.bash
src/sudo.bash [deleted file]