forked from lix-project/lix
* Handle the unlikely case where a derivation has no dependencies at
all.
This commit is contained in:
parent
955d11aae7
commit
f58f51f380
|
@ -887,7 +887,10 @@ void DerivationGoal::outputsSubstituted()
|
||||||
foreach (PathSet::iterator, i, drv.inputSrcs)
|
foreach (PathSet::iterator, i, drv.inputSrcs)
|
||||||
addWaitee(worker.makeSubstitutionGoal(*i));
|
addWaitee(worker.makeSubstitutionGoal(*i));
|
||||||
|
|
||||||
state = &DerivationGoal::inputsRealised;
|
if (waitees.empty()) /* to prevent hang (no wake-up event) */
|
||||||
|
inputsRealised();
|
||||||
|
else
|
||||||
|
state = &DerivationGoal::inputsRealised;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue