Fix threads/jobs Calculation
authorDavid Greene <greened@obbligato.org>
Fri, 14 Oct 2011 19:12:37 +0000 (19:12 +0000)
committerDavid Greene <greened@obbligato.org>
Fri, 14 Oct 2011 19:12:37 +0000 (19:12 +0000)
Pass the correct jobs and threads information to the builder.
We were underutilizing the number of jobs and threads specified
by the user.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141977 91177308-0d34-0410-b5e6-96231b3b80d8

utils/llvmbuild

index 6604616be6e18f3f2a4b0b74f8ecc6470c4be566..b623d32021589c0ee1d70e0c9e0e81af0fdc9515 100755 (executable)
@@ -755,9 +755,10 @@ if jobs == 0:
     jobs = 1
 
 numthreads = options.threads
-if jobs < numthreads:
-    numthreads = jobs
-    jobs = 1
+
+logging.getLogger().info("Building with " + str(options.jobs) + " jobs and "
+                         + str(numthreads) + " threads using " + str(jobs)
+                         + " make jobs")
 
 for t in range(numthreads):
     builder = Builder(work_queue, jobs,