Exit if we couldn't open any input files.
This commit is contained in:
parent
75c135a8a4
commit
2c0aeda459
1 changed files with 7 additions and 0 deletions
|
@ -161,6 +161,13 @@ queue_middle_tasks(const General_options& options,
|
|||
Layout* layout,
|
||||
Workqueue* workqueue)
|
||||
{
|
||||
if (input_objects->number_of_input_objects() == 0)
|
||||
{
|
||||
// We had some input files, but we weren't able to open any of
|
||||
// them.
|
||||
gold_fatal(_("no input files"));
|
||||
}
|
||||
|
||||
int thread_count = options.thread_count_middle();
|
||||
if (thread_count == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue