]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: do not install .a files for packages in std
authorBryan C. Mills <bcmills@google.com>
Mon, 21 Nov 2022 21:57:52 +0000 (16:57 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 21 Nov 2022 22:43:41 +0000 (22:43 +0000)
commit7656cba9ccec334bb4219489d4488234f42f5302
treea53b12c4c8a61c1f7befb1079b069d43a02e4e94
parentd58f2e741c742aafe5d3247bd184e182da71408d
cmd/go: do not install .a files for packages in std

As of CL 450739, we do not need install targets for cgo files when a C
compiler is not present because cgo is not enabled by default.
(Without a C compiler, builds will proceed with cgo disabled.)

Fixes #47257.
Fixes #56888.

Change-Id: I274c50a60b5b1382e291df86a5464da8ad3695a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/452457
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
misc/cgo/testcshared/cshared_test.go
src/cmd/go/go_test.go
src/cmd/go/internal/modindex/read.go
src/cmd/go/testdata/script/cgo_stale.txt
src/cmd/go/testdata/script/install_goroot_targets.txt
src/go/build/build.go
src/go/build/build_test.go