Commit 9fba2a17 authored by Andrew Gerrand's avatar Andrew Gerrand

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

R=dfc
CC=golang-dev
https://golang.org/cl/4416044
parent c94f5fb0
...@@ -185,7 +185,7 @@ func NewBuilder(builder string) (*Builder, os.Error) { ...@@ -185,7 +185,7 @@ func NewBuilder(builder string) (*Builder, os.Error) {
// get goos/goarch from builder string // get goos/goarch from builder string
s := strings.Split(builder, "-", 3) s := strings.Split(builder, "-", 3)
if len(s) == 2 { if len(s) >= 2 {
b.goos, b.goarch = s[0], s[1] b.goos, b.goarch = s[0], s[1]
} else { } else {
return nil, fmt.Errorf("unsupported builder form: %s", builder) return nil, fmt.Errorf("unsupported builder form: %s", builder)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment