]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: move sys.DefaultGoroot to runtime.defaultGOROOT
authorRuss Cox <rsc@golang.org>
Wed, 27 Jan 2021 15:47:38 +0000 (10:47 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 19 Feb 2021 00:01:45 +0000 (00:01 +0000)
commita78879ac67d62c4919492fcb5e05c8b21058217d
tree118e7a544b2c68e0900cf27b505daa40503df54a
parent8ac23a1f151a9b1842797652ed7761f397055b5b
runtime: move sys.DefaultGoroot to runtime.defaultGOROOT

The default GOROOT has nothing to do with system details.
Move it next to its one use in package runtime.

This CL is part of a stack adding windows/arm64
support (#36439), intended to land in the Go 1.17 cycle.
This CL is, however, not windows/arm64-specific.
It is cleanup meant to make the port (and future ports) easier.

Change-Id: I1a601fad6335336b4616b834bb21bd8437ee1313
Reviewed-on: https://go-review.googlesource.com/c/go/+/288796
Trust: Russ Cox <rsc@golang.org>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/cmd/link/internal/ld/main.go
src/runtime/extern.go
src/runtime/internal/sys/arch.go