mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-02 18:06:17 +00:00
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
This commit is contained in:
parent
8e20b9456e
commit
bc5c49b6c7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user