diff options
author | Brian Gesiak <modocache@gmail.com> | 2016-10-04 00:15:37 +0000 |
---|---|---|
committer | Brian Gesiak <modocache@gmail.com> | 2016-10-04 00:15:37 +0000 |
commit | 3a7318f4903a6c3a91b667f33db91bf2ae7d4f88 (patch) | |
tree | 92ce54076478e5143f310f5bfd9124cc5e7a0e81 | |
parent | bbae6a94e86970a516b0a854634246d764273b05 (diff) | |
download | bcm5719-llvm-3a7318f4903a6c3a91b667f33db91bf2ae7d4f88.tar.gz bcm5719-llvm-3a7318f4903a6c3a91b667f33db91bf2ae7d4f88.zip |
[lit] Remove workaround for Python 2.5
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
llvm-svn: 283169
-rwxr-xr-x | llvm/utils/lit/lit/main.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/utils/lit/lit/main.py b/llvm/utils/lit/lit/main.py index 055c7f90ed6..942c425e997 100755 --- a/llvm/utils/lit/lit/main.py +++ b/llvm/utils/lit/lit/main.py @@ -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.") |