diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-08-23 21:28:23 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-08-23 21:28:23 +0000 |
commit | ccbd73cd8da669673807f936a37032faa31cb25b (patch) | |
tree | 153794f05382182be581c4bd1737664a9edbdc42 /tools/multigcc.pl | |
parent | 39331e62958695ff94b234a57bc81ec4fdf80da9 (diff) | |
download | rockbox-ccbd73cd8da669673807f936a37032faa31cb25b.tar.gz rockbox-ccbd73cd8da669673807f936a37032faa31cb25b.zip |
Fixed "gcc: no input files" message.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22482 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/multigcc.pl')
-rwxr-xr-x | tools/multigcc.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/multigcc.pl b/tools/multigcc.pl index 9a43bdb31f..fbe7c17aae 100755 --- a/tools/multigcc.pl +++ b/tools/multigcc.pl @@ -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; } |