Commit ae42beaf authored by Russ Cox's avatar Russ Cox

cmd/go: fix build

TBR=r

TBR=r
CC=golang-dev
https://golang.org/cl/6496124
parent ca75fdf9
......@@ -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" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment