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:
parent
6ae448e8df
commit
fb9706d3be
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user