]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: use latest heap, sort packages for compiler bootstrap
authorRuss Cox <rsc@golang.org>
Fri, 27 Oct 2017 14:34:25 +0000 (10:34 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 27 Oct 2017 16:01:50 +0000 (16:01 +0000)
commita93bc1d26e70cf471ad8f7580333213c67b85313
tree0ed3f529f64fbd668c026ca497a307f4b65829b2
parent3caa02f603fcb895763f2f5c3f737ef69fa9cf0a
cmd/dist: use latest heap, sort packages for compiler bootstrap

The compiler depends on the way heap and sort break ties
in some cases. Instead of trying to find them all, bundle
those packages into the bootstrap compiler builds.

The overall goal is that Go1.4 building cmd/compile during the
bootstrap process produces a semantically equivalent compiler
to cmd/compile compiling itself. After this CL, that property is true,
at least for the compiler compiling itself and the other tools.

A test for this property will be in CL 73212.

Change-Id: Icc1ba7cbe828f5673e8198ebacb18c7c01f3a735
Reviewed-on: https://go-review.googlesource.com/73952
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/dist/buildtool.go