1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:30:06 -07:00

[dev.typeparams] internal/buildcfg: always enable regabiwrappers on AMD64

Always enable regabiwrappers on AMD64. GOEXPERIMENT=none will not
turn it off.

Change-Id: I0aa208c02157661ac3676b753bcfbfa050b99e41
Reviewed-on: https://go-review.googlesource.com/c/go/+/327271
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Cherry Mui 2021-06-09 13:51:59 -04:00
parent e0e9fb8aff
commit 2fe324858b

View File

@ -97,6 +97,10 @@ func parseExperiments() goexperiment.Flags {
}
}
// regabiwrappers is always enabled on amd64.
if GOARCH == "amd64" {
flags.RegabiWrappers = true
}
// regabi is only supported on amd64 and arm64.
if GOARCH != "amd64" && GOARCH != "arm64" {
flags.RegabiWrappers = false