Skip to content

Commit

Permalink
cmd/dist: match goexperiment.regabi tag when GOEXPERIMENT is on
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cherrymui committed Feb 23, 2021
1 parent 1126bbb commit f113e9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmd/dist/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") ||
Expand Down

0 comments on commit f113e9a

Please sign in to comment.