diff options
author | Michael Pratt <mpratt@google.com> | 2020-07-23 08:13:00 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-23 08:14:26 -0700 |
commit | 14839e027f5310346718aea385cea5e45f017170 (patch) | |
tree | a49a3d00489d8cfdcd38710131c2dd8a679da88d /tools/nogo/build.go | |
parent | c9399797d8defbdb41f483d0bdbeb96c5777c82f (diff) |
Internal change
PiperOrigin-RevId: 322788791
Diffstat (limited to 'tools/nogo/build.go')
-rw-r--r-- | tools/nogo/build.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nogo/build.go b/tools/nogo/build.go index fb9f17b62..433d13738 100644 --- a/tools/nogo/build.go +++ b/tools/nogo/build.go @@ -31,10 +31,10 @@ var ( ) // findStdPkg needs to find the bundled standard library packages. -func findStdPkg(path, GOOS, GOARCH string) (io.ReadCloser, error) { +func (i *importer) findStdPkg(path string) (io.ReadCloser, error) { if path == "C" { // Cgo builds cannot be analyzed. Skip. return nil, ErrSkip } - return os.Open(fmt.Sprintf("external/go_sdk/pkg/%s_%s/%s.a", GOOS, GOARCH, path)) + return os.Open(fmt.Sprintf("external/go_sdk/pkg/%s_%s/%s.a", i.GOOS, i.GOARCH, path)) } |