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 | |
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
-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) { | |||
16 | push @{$list}, $a; | 16 | push @{$list}, $a; |
17 | } | 17 | } |
18 | 18 | ||
19 | exit if (not @files); | ||
20 | |||
19 | my $command = join " ", @params; | 21 | my $command = join " ", @params; |
20 | 22 | ||
21 | # shuffle the file list to spread the load as evenly as we can | 23 | # shuffle the file list to spread the load as evenly as we can |
@@ -29,7 +31,7 @@ if (open CPUINFO, "</proc/cpuinfo") { | |||
29 | } | 31 | } |
30 | 32 | ||
31 | # don't run empty children | 33 | # don't run empty children |
32 | if (scalar @files < $cores) | 34 | if (scalar @files <= $cores) |
33 | { | 35 | { |
34 | $cores = 1; | 36 | $cores = 1; |
35 | } | 37 | } |