diff options
author | regnat <rg@regnat.ovh> | 2020-12-03 13:19:20 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2020-12-03 13:24:36 +0100 |
commit | 0afab668fa3f20f091dec0a31fc0b0fbaac2afde (patch) | |
tree | a768153a55a3d7631dad24b1a52d9858074a68ef /src/libstore | |
parent | 7cb341ceb5b55354558fa40080e68e30c2704060 (diff) |
Don't fail early when -j0 is passed
If the build closure contains some CA derivations, then we can't know
ahead-of-time that we won't build anything as early-cutoff might come-in
at a laster stage
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build/worker.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc index 1f8999a4b..6c96a93bd 100644 --- a/src/libstore/build/worker.cc +++ b/src/libstore/build/worker.cc @@ -223,11 +223,6 @@ void Worker::run(const Goals & _topGoals) uint64_t downloadSize, narSize; store.queryMissing(topPaths, willBuild, willSubstitute, unknown, downloadSize, narSize); - if (!willBuild.empty() && 0 == settings.maxBuildJobs && getMachines().empty()) - throw Error( - "%d derivations need to be built, but neither local builds ('--max-jobs') " - "nor remote builds ('--builders') are enabled", willBuild.size()); - debug("entered goal loop"); while (1) { |