]> Cypherpunks repositories - gostls13.git/commit
runtime,cmd/link: include GOEXPERIMENTs in runtime.Version(), "go version X"
authorAustin Clements <austin@google.com>
Tue, 6 Apr 2021 21:04:52 +0000 (17:04 -0400)
committerAustin Clements <austin@google.com>
Thu, 8 Apr 2021 02:17:22 +0000 (02:17 +0000)
commit5159c836410535fad0ae0b23329ef91347c1b133
tree6fc8620fc13072f375f86388d955849989746671
parenta8e55538af40905961c263d980760b76e9c43593
runtime,cmd/link: include GOEXPERIMENTs in runtime.Version(), "go version X"

This adds the set of GOEXPERIMENTs to the build version if it differs
from the default set of experiments. This exposes the experiment
settings via runtime.Version() and "go version <binary>".

Change-Id: I143dbbc50f66a4cf175469199974e18848075af6
Reviewed-on: https://go-review.googlesource.com/c/go/+/307820
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/dist/buildruntime.go
src/cmd/go/testdata/script/version_goexperiment.txt [new file with mode: 0644]
src/cmd/link/internal/ld/main.go
src/internal/goexperiment/flags.go
src/runtime/extern.go
src/runtime/proc.go