diff options
| author | Robert Griesemer <gri@golang.org> | 2022-11-09 16:41:05 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-11-10 14:32:22 +0000 |
| commit | d3726f346925e8a6ef30b2db9de013fa314492e2 (patch) | |
| tree | ac41287cab3fe75871f00af460d76256b7e8c5be /src | |
| parent | a11cd6f69aec5c783656601fbc7b493e0d63f605 (diff) | |
| download | go-d3726f346925e8a6ef30b2db9de013fa314492e2.tar.xz | |
cmd/compile/internal/importer: turn off debugging output
Also, remove `debug` constant. Was not used.
Follow-up on CL 442303.
Fixes #56681.
Change-Id: Ia1499511ba553670617bcb9b7c699412e8df0669
Reviewed-on: https://go-review.googlesource.com/c/go/+/449238
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/compile/internal/importer/gcimporter.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/importer/gcimporter.go b/src/cmd/compile/internal/importer/gcimporter.go index e4d8a86f9a..e479bd12d3 100644 --- a/src/cmd/compile/internal/importer/gcimporter.go +++ b/src/cmd/compile/internal/importer/gcimporter.go @@ -20,9 +20,6 @@ import ( "cmd/compile/internal/types2" ) -// debugging/development support -const debug = false - func lookupGorootExport(pkgpath, srcRoot, srcDir string) (string, bool) { pkgpath = filepath.ToSlash(pkgpath) m, err := goroot.PkgfileMap() @@ -37,7 +34,9 @@ func lookupGorootExport(pkgpath, srcRoot, srcDir string) (string, bool) { vendorPrefix = path.Join("cmd", vendorPrefix) } pkgpath = path.Join(vendorPrefix, pkgpath) - fmt.Fprintln(os.Stderr, "looking up ", pkgpath) + if false { // for debugging + fmt.Fprintln(os.Stderr, "looking up ", pkgpath) + } export, ok := m[pkgpath] return export, ok } |
