]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/go/build/build.go
[dev.boringcrypto] all: merge commit 9d0819b27c (CL 314609) into dev.boringcrypto
[gostls13.git] / src / go / build / build.go
index 8d1a107c6ea713836407ae143607cf2f8a858348..c5895290e4cd2d73aebb6684eb8ce11ab73de124 100644 (file)
@@ -1871,6 +1871,7 @@ func (ctxt *Context) eval(x constraint.Expr, allTags map[string]bool) bool {
 //     cgo (if cgo is enabled)
 //     $GOOS
 //     $GOARCH
+//     boringcrypto
 //     ctxt.Compiler
 //     linux (if GOOS = android)
 //     solaris (if GOOS = illumos)
@@ -1898,6 +1899,10 @@ func (ctxt *Context) matchTag(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 {