aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/dist/build.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
index bbaf595421..519f33afeb 100644
--- a/src/cmd/dist/build.go
+++ b/src/cmd/dist/build.go
@@ -199,6 +199,13 @@ func xinit() {
goexperiment = os.Getenv("GOEXPERIMENT")
// TODO(mdempsky): Validate known experiments?
+ if !strings.Contains(goexperiment, "boringcrypto") {
+ if goexperiment != "" {
+ goexperiment += ","
+ }
+ goexperiment += "boringcrypto"
+ }
+
gogcflags = os.Getenv("BOOT_GO_GCFLAGS")
goldflags = os.Getenv("BOOT_GO_LDFLAGS")