aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-09-21 11:44:26 -0700
committerIan Lance Taylor <iant@golang.org>2021-09-21 14:31:10 -0700
commit09e18d113b3c3dae896ac1a8ad1e0087adbb153b (patch)
tree66b099a6ebc2076ef353afa90d9703824d023812 /libgo/go/runtime
parent97cfb54c3ff15b9691fd1c12a29de56966bf8e0d (diff)
downloadgcc-09e18d113b3c3dae896ac1a8ad1e0087adbb153b.zip
gcc-09e18d113b3c3dae896ac1a8ad1e0087adbb153b.tar.gz
gcc-09e18d113b3c3dae896ac1a8ad1e0087adbb153b.tar.bz2
runtime: set runtime.GOROOT value at build time
In Go 1.17 the gc toolchain changed to set runtime.GOROOT in cmd/link (previously it was runtime/internal/sys.GOROOT). Do the same in libgo. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/351313 gotools/: * Makefile.am (check-runtime): Add goroot.go to --extrafiles. * Makefile.in: Regenerate.
Diffstat (limited to 'libgo/go/runtime')
-rw-r--r--libgo/go/runtime/extern.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/libgo/go/runtime/extern.go b/libgo/go/runtime/extern.go
index 0d7f357..6bd612f 100644
--- a/libgo/go/runtime/extern.go
+++ b/libgo/go/runtime/extern.go
@@ -211,8 +211,6 @@ func Caller(skip int) (pc uintptr, file string, line int, ok bool)
// program counter adjustment.
func Callers(skip int, pc []uintptr) int
-var defaultGOROOT string // set by cmd/link
-
// GOROOT returns the root of the Go tree. It uses the
// GOROOT environment variable, if set at process start,
// or else the root used during the Go build.