From 5c4ed73f1c3f2052d8f60ce5ed45d9d4f9686331 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 25 Mar 2022 13:22:57 -0400 Subject: [PATCH] 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 Run-TryBot: Russ Cox TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- src/internal/goexperiment/exp_boringcrypto_off.go | 9 +++++++++ src/internal/goexperiment/exp_boringcrypto_on.go | 9 +++++++++ src/internal/goexperiment/flags.go | 1 + 3 files changed, 19 insertions(+) create mode 100644 src/internal/goexperiment/exp_boringcrypto_off.go create mode 100644 src/internal/goexperiment/exp_boringcrypto_on.go diff --git a/src/internal/goexperiment/exp_boringcrypto_off.go b/src/internal/goexperiment/exp_boringcrypto_off.go new file mode 100644 index 0000000000..020c75bd53 --- /dev/null +++ b/src/internal/goexperiment/exp_boringcrypto_off.go @@ -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 diff --git a/src/internal/goexperiment/exp_boringcrypto_on.go b/src/internal/goexperiment/exp_boringcrypto_on.go new file mode 100644 index 0000000000..1454329a46 --- /dev/null +++ b/src/internal/goexperiment/exp_boringcrypto_on.go @@ -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 diff --git a/src/internal/goexperiment/flags.go b/src/internal/goexperiment/flags.go index 558b02607e..20d9c2da5d 100644 --- a/src/internal/goexperiment/flags.go +++ b/src/internal/goexperiment/flags.go @@ -58,6 +58,7 @@ type Flags struct { FieldTrack bool PreemptibleLoops bool StaticLockRanking bool + BoringCrypto bool // Unified enables the compiler's unified IR construction // experiment. -- 2.48.1