diff options
author | Austin Clements <austin@google.com> | 2021-04-06 17:04:52 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2021-04-08 02:17:22 +0000 |
commit | 5159c836410535fad0ae0b23329ef91347c1b133 (patch) | |
tree | 6fc8620fc13072f375f86388d955849989746671 /src/runtime/proc.go | |
parent | a8e55538af40905961c263d980760b76e9c43593 (diff) | |
download | go-5159c836410535fad0ae0b23329ef91347c1b133.tar.gz go-5159c836410535fad0ae0b23329ef91347c1b133.zip |
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>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r-- | src/runtime/proc.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 35a3f9ca19..d545a143a0 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -12,8 +12,6 @@ import ( "unsafe" ) -var buildVersion = sys.TheVersion - // set using cmd/go/internal/modload.ModInfoProg var modinfo string |