[llvm] r193465 - lit: Issue a note when multiprocessing fails to load

Alp Toker alp at nuanti.com
Sat Oct 26 02:29:59 PDT 2013


Author: alp
Date: Sat Oct 26 04:29:58 2013
New Revision: 193465

URL: http://llvm.org/viewvc/llvm-project?rev=193465&view=rev
Log:
lit: Issue a note when multiprocessing fails to load

If multiprocessing was requested, detected as available and subsequently failed
to initialize it's worth letting the user know about it before falling back to
threads.

This condition can arise in certain OpenBSD / FreeBSD Python versions.

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=193465&r1=193464&r2=193465&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/run.py (original)
+++ llvm/trunk/utils/lit/lit/run.py Sat Oct 26 04:29:58 2013
@@ -218,6 +218,7 @@ class Run(object):
                 consumer = MultiprocessResultsConsumer(self, display, jobs)
             except ImportError:
                 # Workaround for BSD: http://bugs.python.org/issue3770
+                self.lit_config.note('failed to initialize multiprocessing')
                 consumer = None
         if not consumer:
             task_impl = threading.Thread





More information about the llvm-commits mailing list