mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
Move up assert(!hook);
We don't need to keep doing this every loop iteration, hook stuff it is only set above.
This commit is contained in:
parent
7c1e5b3345
commit
51dadaded4
1 changed files with 1 additions and 2 deletions
|
|
@ -602,12 +602,11 @@ Goal::Co DerivationBuildingGoal::tryToBuild()
|
|||
#ifdef _WIN32 // TODO enable `DerivationBuilder` on Windows
|
||||
throw UnimplementedError("building derivations is not yet implemented on Windows");
|
||||
#else
|
||||
assert(!hook);
|
||||
|
||||
// Will continue here while waiting for a build user below
|
||||
while (true) {
|
||||
|
||||
assert(!hook);
|
||||
|
||||
unsigned int curBuilds = worker.getNrLocalBuilds();
|
||||
if (curBuilds >= settings.maxBuildJobs) {
|
||||
outputLocks.unlock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue