mirror of
https://github.com/golang/go
synced 2024-11-26 16:46:58 -07:00
internal/buildcfg: enable regabiwrappers by default
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>
This commit is contained in:
parent
43466399cb
commit
fd3612e433
@ -20,10 +20,14 @@ import (
|
|||||||
// was built with.)
|
// was built with.)
|
||||||
var Experiment goexperiment.Flags = parseExperiments()
|
var Experiment goexperiment.Flags = parseExperiments()
|
||||||
|
|
||||||
|
var regabiSupported = GOARCH == "amd64" && (GOOS == "linux" || GOOS == "darwin" || GOOS == "windows")
|
||||||
|
|
||||||
// experimentBaseline specifies the experiment flags that are enabled by
|
// experimentBaseline specifies the experiment flags that are enabled by
|
||||||
// default in the current toolchain. This is, in effect, the "control"
|
// default in the current toolchain. This is, in effect, the "control"
|
||||||
// configuration and any variation from this is an experiment.
|
// 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
|
// FramePointerEnabled enables the use of platform conventions for
|
||||||
// saving frame pointers.
|
// saving frame pointers.
|
||||||
|
Loading…
Reference in New Issue
Block a user