1
0
mirror of https://github.com/golang/go synced 2024-11-22 16:44:54 -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:
Cherry Zhang 2021-02-18 14:18:53 -05:00
parent 1126bbb82a
commit f113e9a14f

View File

@ -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") ||