]> granicus.if.org Git - llvm/commitdiff
[lit] Remove workaround for Python 2.5
authorBrian Gesiak <modocache@gmail.com>
Tue, 4 Oct 2016 00:15:37 +0000 (00:15 +0000)
committerBrian Gesiak <modocache@gmail.com>
Tue, 4 Oct 2016 00:15:37 +0000 (00:15 +0000)
Summary:
The minimum version of Python necessary to run the LLVM test suite is
2.7. Code to work around Python 2.5 and lower isn't necessary.

Reviewers: ddunbar, echristo, delcypher, beanz

Subscribers: llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D25209

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283169 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/main.py

index 055c7f90ed6cbf6a7ba66e7f3665a5d6efa6865d..942c425e9978ce5ecf98bce838240f2a0d5dd462 100755 (executable)
@@ -289,14 +289,7 @@ def main_with_tmp(builtinParameters):
         parser.error('No inputs specified')
 
     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 = lit.util.detectCPUs()
-       else:
-               opts.numThreads = 1
+        opts.numThreads = lit.util.detectCPUs()
 
     if opts.maxFailures == 0:
         parser.error("Setting --max-failures to 0 does not have any effect.")