Exit if we couldn't open any input files.

This commit is contained in:
Ian Lance Taylor 2007-10-26 22:12:03 +00:00
parent 75c135a8a4
commit 2c0aeda459

View file

@ -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)
{