summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-14 19:12:37 +0000
committerDavid Greene <greened@obbligato.org>2011-10-14 19:12:37 +0000
commit1dafb035c6b9147baf5f5ba2b608d3b1714f831a (patch)
tree7435e8fc7eb37f27884b6fdd6b3512113f1739f7
parent327c643ec292b12c1339e1d1ea41614dc98b7e4d (diff)
downloadbcm5719-llvm-1dafb035c6b9147baf5f5ba2b608d3b1714f831a.tar.gz
bcm5719-llvm-1dafb035c6b9147baf5f5ba2b608d3b1714f831a.zip
Fix threads/jobs Calculation
Pass the correct jobs and threads information to the builder. We were underutilizing the number of jobs and threads specified by the user. llvm-svn: 141977
-rwxr-xr-xllvm/utils/llvmbuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/llvmbuild b/llvm/utils/llvmbuild
index 6604616be6e..b623d320215 100755
--- a/llvm/utils/llvmbuild
+++ b/llvm/utils/llvmbuild
@@ -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,
OpenPOWER on IntegriCloud