]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: produce intermedate .a files in a temporary location
authorMichael Matloob <matloob@golang.org>
Wed, 28 Sep 2022 15:50:41 +0000 (11:50 -0400)
committerMichael Matloob <matloob@golang.org>
Thu, 27 Oct 2022 17:38:59 +0000 (17:38 +0000)
commit7f255ba065ee7bd41da806b297cd643e3ead3fee
tree7b7bb381dcb673f9210d7de3ab654e235680c1ae
parent0156b797e6f0d1a116a19cd852f569ec2c2eec11
cmd/dist: produce intermedate .a files in a temporary location

Before this change, the .a files for the intermediate go toolchains
were produced in the same location as the install target. This change
has them produced in a temporary location instead. This change,
combined with go install not producing .a files for most stdlib
packages by default results in a build of the distribution only
producing .a's for the five packages in std that require cgo. (Before
this change, the .a's for the final build were not being produced, but
stale ones from the intermediate builds were left behind.)

For #47257

Change-Id: I91b826cd1ce9aad9c492fb865e36d34dc8bb188e
Reviewed-on: https://go-review.googlesource.com/c/go/+/436135
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/dist/build.go