Fixed "gcc: no input files" message.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22482 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2009-08-23 21:28:23 +00:00
parent 39331e6295
commit ccbd73cd8d

View file

@ -16,6 +16,8 @@ for my $a (@ARGV) {
push @{$list}, $a;
}
exit if (not @files);
my $command = join " ", @params;
# shuffle the file list to spread the load as evenly as we can
@ -29,7 +31,7 @@ if (open CPUINFO, "</proc/cpuinfo") {
}
# don't run empty children
if (scalar @files < $cores)
if (scalar @files <= $cores)
{
$cores = 1;
}