]> Cypherpunks repositories - gostls13.git/commit
internal/goversion: add new package, move Go 1.x constant there out of go/build
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 19 Apr 2019 16:09:17 +0000 (16:09 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 19 Apr 2019 18:04:35 +0000 (18:04 +0000)
commit64e29f94e29ce6fa01537f639aec5fbea28a6a7f
tree43fe0e02a6e132f698367e4c611cd73010952d80
parent97252f620ff8718ca9f7fef0ddebef16c6993612
internal/goversion: add new package, move Go 1.x constant there out of go/build

Found by Josh, who says in the bug that it shrinks cmd/compile by 1.6 MB (6.5%).

Fixes #31563

Change-Id: I35127af539630e628a0a4f2273af519093536c38
Reviewed-on: https://go-review.googlesource.com/c/go/+/172997
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/dep_test.go [new file with mode: 0644]
src/cmd/compile/internal/gc/main.go
src/cmd/dist/buildtool.go
src/go/build/build.go
src/go/build/deps_test.go
src/internal/goversion/goversion.go [new file with mode: 0644]