forked from lix-project/lix
* With `--max-jobs 0', print a nicer error message than "Assertion
`!awake.empty()' failed."
This commit is contained in:
parent
737423a89c
commit
7377195297
|
@ -2550,8 +2550,12 @@ void Worker::run(const Goals & _topGoals)
|
||||||
/* Wait for input. */
|
/* Wait for input. */
|
||||||
if (!children.empty() || !waitingForAWhile.empty())
|
if (!children.empty() || !waitingForAWhile.empty())
|
||||||
waitForInput();
|
waitForInput();
|
||||||
else
|
else {
|
||||||
|
if (maxBuildJobs == 0) throw Error(
|
||||||
|
"unable to start any build; either increase `--max-jobs' "
|
||||||
|
"or enable distributed builds");
|
||||||
assert(!awake.empty());
|
assert(!awake.empty());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If --keep-going is not set, it's possible that the main goal
|
/* If --keep-going is not set, it's possible that the main goal
|
||||||
|
|
Loading…
Reference in a new issue