]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.2] misc/dist: build race packages when os suffix present
authorAndrew Gerrand <adg@golang.org>
Thu, 31 Oct 2013 23:50:00 +0000 (10:50 +1100)
committerAndrew Gerrand <adg@golang.org>
Thu, 31 Oct 2013 23:50:00 +0000 (10:50 +1100)
««« CL 14930043 / 5746e3a5443b
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
»»»

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/20290045

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
                                        }
                                }