]> Cypherpunks repositories - gostls13.git/commitdiff
gobuilder: permit builders of the form goos-goarch-foo
authorAndrew Gerrand <adg@golang.org>
Fri, 15 Apr 2011 01:56:56 +0000 (11:56 +1000)
committerAndrew Gerrand <adg@golang.org>
Fri, 15 Apr 2011 01:56:56 +0000 (11:56 +1000)
R=dfc
CC=golang-dev
https://golang.org/cl/4416044

misc/dashboard/builder/main.go

index 735717e28d0fa80eb643cffd6a198f611f5d17cd..25cc5d3c2c1f9b6d1b9711c6dc4607bf123daa0e 100644 (file)
@@ -185,7 +185,7 @@ func NewBuilder(builder string) (*Builder, os.Error) {
 
        // get goos/goarch from builder string
        s := strings.Split(builder, "-", 3)
-       if len(s) == 2 {
+       if len(s) >= 2 {
                b.goos, b.goarch = s[0], s[1]
        } else {
                return nil, fmt.Errorf("unsupported builder form: %s", builder)