1
0
mirror of https://github.com/golang/go synced 2024-09-24 05:10:13 -06:00

internal/goexperiment: add GOEXPERIMENT=boringcrypto

Not hooked up to everything else yet.

Copy of CL 395880, for setting up GOEXPERIMENT=boringcrypto
builder ahead of merge.

For #51940.

Change-Id: If842761f77d07329d88748990b95f4b39c2f153a
Reviewed-on: https://go-review.googlesource.com/c/go/+/397895
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Russ Cox 2022-03-25 13:22:57 -04:00
parent ef55053354
commit 5c4ed73f1c
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// Code generated by mkconsts.go. DO NOT EDIT.
//go:build !goexperiment.boringcrypto
// +build !goexperiment.boringcrypto
package goexperiment
const BoringCrypto = false
const BoringCryptoInt = 0

View File

@ -0,0 +1,9 @@
// Code generated by mkconsts.go. DO NOT EDIT.
//go:build goexperiment.boringcrypto
// +build goexperiment.boringcrypto
package goexperiment
const BoringCrypto = true
const BoringCryptoInt = 1

View File

@ -58,6 +58,7 @@ type Flags struct {
FieldTrack bool
PreemptibleLoops bool
StaticLockRanking bool
BoringCrypto bool
// Unified enables the compiler's unified IR construction
// experiment.