1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:54:39 -07:00

gobuilder: permit builders of the form goos-goarch-foo

R=dfc
CC=golang-dev
https://golang.org/cl/4416044
This commit is contained in:
Andrew Gerrand 2011-04-15 11:56:56 +10:00
parent c94f5fb0ba
commit 9fba2a17c2

View 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)