summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/multigcc.pl4
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
19exit if (not @files);
20
19my $command = join " ", @params; 21my $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
32if (scalar @files < $cores) 34if (scalar @files <= $cores)
33{ 35{
34 $cores = 1; 36 $cores = 1;
35} 37}