]> Cypherpunks repositories - gostls13.git/commitdiff
internal/buildcfg: enable regabiwrappers by default
authorAustin Clements <austin@google.com>
Wed, 14 Apr 2021 16:37:04 +0000 (12:37 -0400)
committerAustin Clements <austin@google.com>
Sat, 17 Apr 2021 00:02:01 +0000 (00:02 +0000)
For #40724.

Change-Id: I75d6ba2d3e4e2d858eea8053efd0f3fd4439dab7
Reviewed-on: https://go-review.googlesource.com/c/go/+/310172
Trust: Austin Clements <austin@google.com>
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/internal/buildcfg/exp.go

index f4368ccdcf1863cb8f4c8b9be158a493a2b8f2ef..bf4a8fa977dae1e4a641d77faa053e33ded11f81 100644 (file)
@@ -20,10 +20,14 @@ import (
 // was built with.)
 var Experiment goexperiment.Flags = parseExperiments()
 
+var regabiSupported = GOARCH == "amd64" && (GOOS == "linux" || GOOS == "darwin" || GOOS == "windows")
+
 // experimentBaseline specifies the experiment flags that are enabled by
 // default in the current toolchain. This is, in effect, the "control"
 // configuration and any variation from this is an experiment.
-var experimentBaseline = goexperiment.Flags{}
+var experimentBaseline = goexperiment.Flags{
+       RegabiWrappers: regabiSupported,
+}
 
 // FramePointerEnabled enables the use of platform conventions for
 // saving frame pointers.