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:
parent
39331e6295
commit
ccbd73cd8d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue