mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
cmd/link: fix defaultGOROOT package
CL 310731 moved cmd/internal/objabi.defaultGOROOT to internal/buildcfg.defaultGOROOT, but didn't update the place in the linker that sets its value. Fixes the failing reboot test on the GOEXPERIMENT builders. Change-Id: I135b6bfc0fdadbe6cfc144d7aa55ca13519ba004 Reviewed-on: https://go-review.googlesource.com/c/go/+/310869 Trust: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
b65f8589e8
commit
b05903a9f6
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ func Main(arch *sys.Arch, theArch Arch) {
|
|||
|
||||
final := gorootFinal()
|
||||
addstrdata1(ctxt, "runtime.defaultGOROOT="+final)
|
||||
addstrdata1(ctxt, "cmd/internal/objabi.defaultGOROOT="+final)
|
||||
addstrdata1(ctxt, "internal/buildcfg.defaultGOROOT="+final)
|
||||
|
||||
buildVersion := buildcfg.Version
|
||||
if goexperiment := buildcfg.GOEXPERIMENT(); goexperiment != "" {
|
||||
|
|
Loading…
Reference in a new issue