From: David Greene Date: Fri, 14 Oct 2011 19:12:37 +0000 (+0000) Subject: Fix threads/jobs Calculation X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc5c49b6c7c24356b2a863351af2fed336f133ca;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141977 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/llvmbuild b/utils/llvmbuild index 6604616be6e..b623d320215 100755 --- a/utils/llvmbuild +++ b/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,