]> Cypherpunks repositories - gostls13.git/commit
go,cmd,internal: update to anticipate missing targets and .a files
authorMichael Matloob <matloob@golang.org>
Wed, 21 Sep 2022 19:51:27 +0000 (15:51 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 18 Oct 2022 20:41:45 +0000 (20:41 +0000)
commit7ea0520234aafb47d05bb4822cb7af54c6ac7554
treeb2759e2dd9643b302c7af23090d032e9d9e821f1
parentb6e1a563fc142d7129a0ea6a3c6137ee12ff43f7
go,cmd,internal: update to anticipate missing targets and .a files

go/build and cmd/go will stop returing Targets for stdlib .a files, and
stop producing the .a files is pkg/GOOS_GOARCH. update tests to
anticipate that and to pass in importcfgs instead of expecting the
compiler can find .a files in their old locations.

Adds code to determine locations of .a files to internal/goroot. Also
adds internal/goroot to dist's bootstrap directories and changes
internal/goroot to build with a bootstrap version of Go.

Change-Id: Ie81e51105bddb3f0e374cbf47e81c23edfb67fa5
Reviewed-on: https://go-review.googlesource.com/c/go/+/442303
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
17 files changed:
src/cmd/compile/internal/importer/gcimporter.go
src/cmd/compile/internal/importer/gcimporter_test.go
src/cmd/dist/buildtool.go
src/cmd/internal/archive/archive_test.go
src/cmd/link/link_test.go
src/cmd/objdump/objdump_test.go
src/cmd/pack/pack_test.go
src/go/build/deps_test.go
src/go/importer/importer_test.go
src/go/internal/gcimporter/gcimporter.go
src/go/internal/gcimporter/gcimporter_test.go
src/internal/abi/abi_test.go
src/internal/goroot/gc.go
src/internal/goroot/importcfg.go [new file with mode: 0644]
src/internal/testenv/testenv.go
src/internal/types/errors/codes_test.go
src/runtime/align_test.go