]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: match goexperiment.regabi tag when GOEXPERIMENT is on
authorCherry Zhang <cherryyz@google.com>
Thu, 18 Feb 2021 19:18:53 +0000 (14:18 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 23 Feb 2021 00:20:38 +0000 (00:20 +0000)
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>
src/cmd/dist/build.go

index c02b92818c2dae09f8fec90a344528ff15bd74f5..07ede42574f46cc40717880645db16bd3c6fd483 100644 (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") ||