llvm.org GIT mirror llvm / 1885458
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193516 91177308-0d34-0410-b5e6-96231b3b80d8 Alp Toker 5 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
215215 queue_impl = multiprocessing.Queue
216216 canceled_flag = multiprocessing.Value('i', 0)
217217 consumer = MultiprocessResultsConsumer(self, display, jobs)
218 except ImportError:
218 except:
219219 # multiprocessing fails to initialize with certain OpenBSD and
220220 # FreeBSD Python versions: http://bugs.python.org/issue3770
221 # Unfortunately the error raised also varies by platform.
221222 self.lit_config.note('failed to initialize multiprocessing')
222223 consumer = None
223224 if not consumer: