mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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. llvm-svn: 193516
This commit is contained in:
parent
5938ec4cbe
commit
7f0b2395d8
@ -216,9 +216,10 @@ class Run(object):
|
|||||||
queue_impl = multiprocessing.Queue
|
queue_impl = multiprocessing.Queue
|
||||||
canceled_flag = multiprocessing.Value('i', 0)
|
canceled_flag = multiprocessing.Value('i', 0)
|
||||||
consumer = MultiprocessResultsConsumer(self, display, jobs)
|
consumer = MultiprocessResultsConsumer(self, display, jobs)
|
||||||
except ImportError:
|
except:
|
||||||
# multiprocessing fails to initialize with certain OpenBSD and
|
# multiprocessing fails to initialize with certain OpenBSD and
|
||||||
# FreeBSD Python versions: http://bugs.python.org/issue3770
|
# FreeBSD Python versions: http://bugs.python.org/issue3770
|
||||||
|
# Unfortunately the error raised also varies by platform.
|
||||||
self.lit_config.note('failed to initialize multiprocessing')
|
self.lit_config.note('failed to initialize multiprocessing')
|
||||||
consumer = None
|
consumer = None
|
||||||
if not consumer:
|
if not consumer:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user