misc/dist: build race packages when os suffix present

The "darwin-amd64-osx10.8" target was not matching "darwin-amd64".

R=golang-dev
CC=golang-dev
https://golang.org/cl/14930043
This commit is contained in:
Andrew Gerrand 2013-10-18 15:03:41 +09:00
parent 7e4af6d93f
commit f5d25fd695
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func main() {
}
if *includeRace {
for _, t := range raceAvailable {
if t == targ {
if t == targ || strings.HasPrefix(targ, t+"-") {
b.Race = true
}
}