]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/importer,go/internal/gcimporter: use the 'go' command from build...
authorBryan C. Mills <bcmills@google.com>
Fri, 14 Apr 2023 16:48:26 +0000 (16:48 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 14 Apr 2023 20:09:13 +0000 (20:09 +0000)
commit750e91152bbd1cb2869660ddb80f2b3adcfd1f9b
treecb53a977e3d79c19b0da4a74f5b91934ef42f31d
parentdd53a439206e9b4bf194eb00fb28577a03d86df5
cmd/compile/internal/importer,go/internal/gcimporter: use the 'go' command from build.Default.GOROOT in lookupGorootExport

Also set GOROOT explicitly in case it is set to something else in the
caller's environment.

Fixes #59598.

Change-Id: I5599ed1183b23187fc3b976786f3c320d42ef4f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/484756
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/compile/internal/importer/gcimporter.go
src/go/internal/gcimporter/gcimporter.go