]> Cypherpunks repositories - gostls13.git/commitdiff
misc/dist: build race packages when os suffix present
authorAndrew Gerrand <adg@golang.org>
Fri, 18 Oct 2013 06:03:41 +0000 (15:03 +0900)
committerAndrew Gerrand <adg@golang.org>
Fri, 18 Oct 2013 06:03:41 +0000 (15:03 +0900)
The "darwin-amd64-osx10.8" target was not matching "darwin-amd64".

R=golang-dev
CC=golang-dev
https://golang.org/cl/14930043

misc/dist/bindist.go

index 38287a338549c77658d4ca40d6094386941f8034..a98f040e62856a19c1254d99dd081895baf75df2 100644 (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
                                        }
                                }