Fix handling of rules with multiple targets.

This commit is contained in:
Daniel Jones 2013-07-09 22:39:59 -07:00
parent fc1d2ebfb8
commit 782a73e0d9

2
mk.go
View file

@ -129,7 +129,6 @@ func mkNode(g *graph, u *node, dryrun bool) {
}
prereqs[i].mutex.Unlock()
}
e.r.mutex.Unlock()
// wait until all the prereqs are built
for pending > 0 {
@ -171,6 +170,7 @@ func mkNode(g *graph, u *node, dryrun bool) {
} else if finalstatus != nodeStatusFailed {
finalstatus = nodeStatusNop
}
e.r.mutex.Unlock()
}
func mkError(msg string) {