1
0
mirror of https://github.com/golang/go synced 2024-11-22 10:04:42 -07:00

cmd/go: fix freebsd build

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5530063
This commit is contained in:
Mikio Hara 2012-01-10 14:47:20 +09:00
parent 8d8829c671
commit 8cad9251b3

View File

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