mirror of
https://github.com/golang/go
synced 2024-11-19 23:44:43 -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:
parent
6ae448e8df
commit
fb9706d3be
@ -876,6 +876,9 @@ func (b *builder) includeArgs(flag string, all []*action) []string {
|
||||
dir = filepath.Join(dir, "gccgo")
|
||||
} else {
|
||||
dir = filepath.Join(dir, goos+"_"+goarch)
|
||||
if buildRace {
|
||||
dir += "_race"
|
||||
}
|
||||
}
|
||||
inc = append(inc, flag, dir)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user