// was built with.)
var Experiment goexperiment.Flags = parseExperiments()
+// 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
+
// FramePointerEnabled enables the use of platform conventions for
// saving frame pointers.
//
func parseExperiments() goexperiment.Flags {
// Start with the statically enabled set of experiments.
- flags := goexperiment.BaselineFlags
+ flags := experimentBaseline
// Pick up any changes to the baseline configuration from the
// GOEXPERIMENT environment. This can be set at make.bash time
// GOEXPERIMENT is exactly what a user would set on the command line
// to get the set of enabled experiments.
func GOEXPERIMENT() string {
- return strings.Join(expList(&Experiment, &goexperiment.BaselineFlags), ",")
+ return strings.Join(expList(&Experiment, &experimentBaseline), ",")
}
// EnabledExperiments returns a list of enabled experiments, as
// When specified in the GOEXPERIMENT environment variable or as build
// tags, experiments use the strings.ToLower of their field name.
//
+// For the baseline experimental configuration, see
+// objabi.experimentBaseline.
+//
// If you change this struct definition, run "go generate".
type Flags struct {
FieldTrack bool
// register arguments to defer/go).
RegabiArgs bool
}
-
-// BaselineFlags 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 BaselineFlags = Flags{}