* Handle the unlikely case where a derivation has no dependencies at
all.
This commit is contained in:
		
							parent
							
								
									955d11aae7
								
							
						
					
					
						commit
						f58f51f380
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -887,6 +887,9 @@ void DerivationGoal::outputsSubstituted()
 | 
			
		|||
    foreach (PathSet::iterator, i, drv.inputSrcs)
 | 
			
		||||
        addWaitee(worker.makeSubstitutionGoal(*i));
 | 
			
		||||
 | 
			
		||||
    if (waitees.empty()) /* to prevent hang (no wake-up event) */
 | 
			
		||||
        inputsRealised();
 | 
			
		||||
    else
 | 
			
		||||
        state = &DerivationGoal::inputsRealised;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue