mirror of
https://github.com/golang/go
synced 2024-11-20 05:44:44 -07:00
cmd/go: fix build
TBR=r TBR=r CC=golang-dev https://golang.org/cl/6496124
This commit is contained in:
parent
ca75fdf972
commit
ae42beafd3
@ -319,7 +319,7 @@ func (p *Package) load(stk *importStack, bp *build.Package, err error) *Package
|
||||
elem = full
|
||||
}
|
||||
p.target = filepath.Join(p.build.BinDir, elem)
|
||||
if p.Goroot && (isGoTool[p.ImportPath] || hasPrefix(p.ImportPath, "exp/")) {
|
||||
if p.Goroot && (isGoTool[p.ImportPath] || strings.HasPrefix(p.ImportPath, "exp/")) {
|
||||
p.target = filepath.Join(gorootPkg, "tool", full)
|
||||
}
|
||||
if buildContext.GOOS == "windows" {
|
||||
|
Loading…
Reference in New Issue
Block a user