]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix freebsd build
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 10 Jan 2012 05:47:20 +0000 (14:47 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Tue, 10 Jan 2012 05:47:20 +0000 (14:47 +0900)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5530063

src/cmd/go/build.go

index 2abc944ef8691d999071c9b028863facd5868621..5bd446cf58e384b7ca56d355242b90c6ff6e92e4 100644 (file)
@@ -449,6 +449,9 @@ func (b *builder) do(root *action) {
        // drop the parallelism to 1, both to make the output
        // deterministic and because there is no real work anyway.
        par := buildP
+       if par == 0 {
+               par = 1
+       }
        if buildN {
                par = 1
        }