diff options
author | David Greene <greened@obbligato.org> | 2011-10-14 19:12:37 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-10-14 19:12:37 +0000 |
commit | bc5c49b6c7c24356b2a863351af2fed336f133ca (patch) | |
tree | a5fa9a24ba799730dbb197e0a2477538edf21d63 /utils | |
parent | 8e20b9456e58ad7b2416cc9785792f8ee4fbbecf (diff) | |
download | external_llvm-bc5c49b6c7c24356b2a863351af2fed336f133ca.zip external_llvm-bc5c49b6c7c24356b2a863351af2fed336f133ca.tar.gz external_llvm-bc5c49b6c7c24356b2a863351af2fed336f133ca.tar.bz2 |
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
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/llvmbuild | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/llvmbuild b/utils/llvmbuild index 6604616..b623d32 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, |