]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/objabi: generalize "is runtime package" check
authorAustin Clements <austin@google.com>
Fri, 30 Jun 2023 21:11:31 +0000 (17:11 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 Aug 2023 19:18:26 +0000 (19:18 +0000)
commit88a6df72c9c056559bda14d88252ba350949bf50
treeda7e56c507b5097b30857acc6e13d736451691bc
parent72946ae8674a295e7485982fe57c65c7142b2c14
cmd/internal/objabi: generalize "is runtime package" check

There are several implementations of "is this package path a runtime
package". They all have slightly different lists because they all care
about slightly different properties of building the runtime.

To start converging these, we replace objabi.IsRuntimePackagePath with
objabi.LookupPkgSpecial, which returns a struct we can extend with
various special build properties. We'll extend this with several other
flags in the following CLs.

Change-Id: I21959cb8c3d18a350d6060467681c72ea49af712
Reviewed-on: https://go-review.googlesource.com/c/go/+/521698
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/cmd/asm/main.go
src/cmd/internal/objabi/path.go
src/cmd/internal/objabi/pkgspecial.go [new file with mode: 0644]