diff options
author | Than McIntosh <thanm@google.com> | 2019-04-12 09:47:43 -0400 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2019-09-18 17:41:44 +0000 |
commit | baf7d95350c9eab317efe769cf113b3611a6ccd0 (patch) | |
tree | a08ff5b6fe6926b828f65578d8c48b9fe3209997 /src/cmd/go/internal/load/pkg.go | |
parent | 7987238d9cfcef5f79ccd9458e59e22d8a8b3cf2 (diff) | |
download | go-baf7d95350c9eab317efe769cf113b3611a6ccd0.tar.gz go-baf7d95350c9eab317efe769cf113b3611a6ccd0.zip |
cmd/go: use alternate debug_modinfo recipe for gccgo
Use a different recipe for capturing debug modinfo if we're compiling
with the gccgo toolchain, to avoid applying a go:linkname directive to
a variable (not supported by gccgo).
Fixes #30344.
Change-Id: I9ce3d42c3bbb809fd68b140f56f9bbe3406c351b
Reviewed-on: https://go-review.googlesource.com/c/go/+/171768
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/internal/load/pkg.go')
-rw-r--r-- | src/cmd/go/internal/load/pkg.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go index 27efc7c04a..daaa3ab0c1 100644 --- a/src/cmd/go/internal/load/pkg.go +++ b/src/cmd/go/internal/load/pkg.go @@ -40,7 +40,7 @@ var ( ModPackageModuleInfo func(path string) *modinfo.ModulePublic // return module info for Package struct ModImportPaths func(args []string) []*search.Match // expand import paths ModPackageBuildInfo func(main string, deps []string) string // return module info to embed in binary - ModInfoProg func(info string) []byte // wrap module info in .go code for binary + ModInfoProg func(info string, isgccgo bool) []byte // wrap module info in .go code for binary ModImportFromFiles func([]string) // update go.mod to add modules for imports in these files ModDirImportPath func(string) string // return effective import path for directory ) |