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:
parent
c94f5fb0ba
commit
9fba2a17c2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user