1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:34:41 -07:00

cmd/go: use correct paths with race detector

Currently the build fails with -race if a package in GOPATH
imports another package in GOPATH.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6811083
This commit is contained in:
Dmitriy Vyukov 2012-11-06 20:11:49 +04:00
parent 6ae448e8df
commit fb9706d3be

View File

@ -876,6 +876,9 @@ func (b *builder) includeArgs(flag string, all []*action) []string {
dir = filepath.Join(dir, "gccgo") dir = filepath.Join(dir, "gccgo")
} else { } else {
dir = filepath.Join(dir, goos+"_"+goarch) dir = filepath.Join(dir, goos+"_"+goarch)
if buildRace {
dir += "_race"
}
} }
inc = append(inc, flag, dir) inc = append(inc, flag, dir)
} }