[llvm] r193516 - lit: multiprocessing platform fix attempt
Alp Toker
alp at nuanti.com
Mon Oct 28 03:26:14 PDT 2013
Author: alp
Date: Mon Oct 28 05:26:13 2013
New Revision: 193516
URL: http://llvm.org/viewvc/llvm-project?rev=193516&view=rev
Log:
lit: multiprocessing platform fix attempt
The error raised by Python varies by platform(!), so let's just catch any
exception and fall back.
Thanks to Sylvestre Ledru for noticing this on a Debian / Python 2.7 system
running code coverage.
Modified:
llvm/trunk/utils/lit/lit/run.py
Modified: llvm/trunk/utils/lit/lit/run.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/run.py?rev=193516&r1=193515&r2=193516&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/run.py (original)
+++ llvm/trunk/utils/lit/lit/run.py Mon Oct 28 05:26:13 2013
@@ -216,9 +216,10 @@ class Run(object):
queue_impl = multiprocessing.Queue
canceled_flag = multiprocessing.Value('i', 0)
consumer = MultiprocessResultsConsumer(self, display, jobs)
- except ImportError:
+ except:
# multiprocessing fails to initialize with certain OpenBSD and
# FreeBSD Python versions: http://bugs.python.org/issue3770
+ # Unfortunately the error raised also varies by platform.
self.lit_config.note('failed to initialize multiprocessing')
consumer = None
if not consumer:
More information about the llvm-commits
mailing list