mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-19 01:27:40 +00:00
Set numThreads to 1 by default when Python is older than 2.5.2.
Python 2.4 always hits this bug: http://bugs.python.org/issue1731717 when running check-lit on multi-core systems. Setting numThreads to 1 makes it slower, but at least the results reported are correct. llvm-svn: 98969
This commit is contained in:
parent
5d1378e7a3
commit
ec792738a5
@ -411,7 +411,14 @@ def main():
|
||||
gSiteConfigName = '%s.site.cfg' % opts.configPrefix
|
||||
|
||||
if opts.numThreads is None:
|
||||
# Python <2.5 has a race condition causing lit to always fail with numThreads>1
|
||||
# http://bugs.python.org/issue1731717
|
||||
# I haven't seen this bug occur with 2.5.2 and later, so only enable multiple
|
||||
# threads by default there.
|
||||
if sys.hexversion >= 0x2050200:
|
||||
opts.numThreads = Util.detectCPUs()
|
||||
else:
|
||||
opts.numThreads = 1
|
||||
|
||||
inputs = args
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user