diff options
Diffstat (limited to 'src/go/build/build.go')
-rw-r--r-- | src/go/build/build.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/go/build/build.go b/src/go/build/build.go index 217fadf5bd..35e07ea04c 100644 --- a/src/go/build/build.go +++ b/src/go/build/build.go @@ -1837,6 +1837,7 @@ func splitQuoted(s string) (r []string, err error) { // $GOARCH // cgo (if cgo is enabled) // !cgo (if cgo is disabled) +// boringcrypto // ctxt.Compiler // !ctxt.Compiler // tag (if tag is listed in ctxt.BuildTags or ctxt.ReleaseTags) @@ -1891,6 +1892,10 @@ func (ctxt *Context) match(name string, allTags map[string]bool) bool { if ctxt.GOOS == "ios" && name == "darwin" { return true } + // Let applications know that the Go+BoringCrypto toolchain is in use. + if name == "boringcrypto" { + return true + } // other tags for _, tag := range ctxt.BuildTags { |