1
0
mirror of https://github.com/golang/go synced 2024-11-26 22:31:23 -07:00

go/build: add GOOS and GOARCH to name of gccgo pkg directory

This matches the behaviour of builder.includeArgs in
cmd/go/build.go.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/14535048
This commit is contained in:
Ian Lance Taylor 2013-10-11 16:17:45 -07:00
parent 96648e0195
commit 5b2f626159

View File

@ -445,7 +445,7 @@ func (ctxt *Context) Import(path string, srcDir string, mode ImportMode) (*Packa
switch ctxt.Compiler { switch ctxt.Compiler {
case "gccgo": case "gccgo":
dir, elem := pathpkg.Split(p.ImportPath) dir, elem := pathpkg.Split(p.ImportPath)
pkga = "pkg/gccgo/" + dir + "lib" + elem + ".a" pkga = "pkg/gccgo_" + ctxt.GOOS + "_" + ctxt.GOARCH + "/" + dir + "lib" + elem + ".a"
case "gc": case "gc":
suffix := "" suffix := ""
if ctxt.InstallSuffix != "" { if ctxt.InstallSuffix != "" {