mirror of
https://github.com/golang/go
synced 2024-11-26 17:56:55 -07:00
cmd/dist: match goexperiment.regabi tag when GOEXPERIMENT is on
Change-Id: I5e4347dde6dcb49cd96608e4f67e54c7b3050bc2 Reviewed-on: https://go-review.googlesource.com/c/go/+/293851 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
1126bbb82a
commit
f113e9a14f
5
src/cmd/dist/build.go
vendored
5
src/cmd/dist/build.go
vendored
@ -982,6 +982,11 @@ func matchtag(tag string) bool {
|
||||
}
|
||||
return !matchtag(tag[1:])
|
||||
}
|
||||
if os.Getenv("GOEXPERIMENT") == "regabi" && tag == "goexperiment.regabi" {
|
||||
// TODO: maybe we can handle GOEXPERIMENT more generally.
|
||||
// Or remove once we commit to regabi (#40724).
|
||||
return true
|
||||
}
|
||||
return tag == "gc" || tag == goos || tag == goarch || tag == "cmd_go_bootstrap" || tag == "go1.1" ||
|
||||
(goos == "android" && tag == "linux") ||
|
||||
(goos == "illumos" && tag == "solaris") ||
|
||||
|
Loading…
Reference in New Issue
Block a user