From f4c0f42f99476ed1621527f04364610ed2acf6bb Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 27 Apr 2022 09:02:52 -0400 Subject: [dev.boringcrypto] all: add boringcrypto build tags A plain make.bash in this tree will produce a working, standard Go toolchain, not a BoringCrypto-enabled one. The BoringCrypto-enabled one will be created with: GOEXPERIMENT=boringcrypto ./make.bash For #51940. Change-Id: Ia9102ed993242eb1cb7f9b93eca97e81986a27b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/395881 Run-TryBot: Russ Cox Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- src/cmd/api/goapi_boring_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/cmd/api/goapi_boring_test.go (limited to 'src/cmd/api') diff --git a/src/cmd/api/goapi_boring_test.go b/src/cmd/api/goapi_boring_test.go new file mode 100644 index 0000000000..f0e3575637 --- /dev/null +++ b/src/cmd/api/goapi_boring_test.go @@ -0,0 +1,17 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build boringcrypto + +package main + +import ( + "fmt" + "os" +) + +func init() { + fmt.Printf("SKIP with boringcrypto enabled\n") + os.Exit(0) +} -- cgit v1.3-5-g9baa