]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] internal/buildcfg: always enable regabiwrappers on AMD64
authorCherry Mui <cherryyz@google.com>
Wed, 9 Jun 2021 17:51:59 +0000 (13:51 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 11 Jun 2021 19:54:25 +0000 (19:54 +0000)
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>

src/internal/buildcfg/exp.go

index 9402da2ebff3bf0c5cee2e4279fbfb4cbd0b76a5..b3f3de62a88e557ea7f685475efad2a2a3dbf726 100644 (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