diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index fe08ab06..c341d7e5 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -133,6 +133,12 @@ void State::parseMachines(const std::string & contents) newMachines[m.first] = machine; } + static bool warned = false; + if (newMachines.empty() && !warned) { + printError("warning: no build machines are defined"); + warned = true; + } + auto machines_(machines.lock()); *machines_ = newMachines;