Commit fb9706d3 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

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
parent 6ae448e8
...@@ -876,6 +876,9 @@ func (b *builder) includeArgs(flag string, all []*action) []string { ...@@ -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)
} }
......
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