diff options
author | Russ Cox <rsc@golang.org> | 2022-04-27 09:02:52 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2022-04-29 14:23:22 +0000 |
commit | f4c0f42f99476ed1621527f04364610ed2acf6bb (patch) | |
tree | 1c77f982420449676b017f055dad47a7f3a01339 /src/cmd/api/goapi_boring_test.go | |
parent | 1f0547c4ec4fe18d46192d8c670190111b1d3d79 (diff) | |
download | go-f4c0f42f99476ed1621527f04364610ed2acf6bb.tar.gz go-f4c0f42f99476ed1621527f04364610ed2acf6bb.zip |
[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 <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/api/goapi_boring_test.go')
-rw-r--r-- | src/cmd/api/goapi_boring_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cmd/api/goapi_boring_test.go b/src/cmd/api/goapi_boring_test.go new file mode 100644 index 00000000000..f0e3575637c --- /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) +} |