Attempt to fix the FreeBSD build, disable multiprocessing

Speculative quick fix based on clang-X86_64-freebsd output:

  File "/usr/local/lib/python2.6/multiprocessing/synchronize.py", line 33, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alp Toker 2013-10-26 02:43:08 +00:00
parent 4d4bbaf997
commit 59b8e0419c

View File

@ -111,7 +111,8 @@ def write_test_results(run, lit_config, testing_time, output_path):
def main(builtinParameters = {}):
# Use processes by default on Unix platforms.
isWindows = platform.system() == 'Windows'
useProcessesIsDefault = (not isWindows) and platform.system() != 'OpenBSD'
# multiprocessing is broken on various BSD Python versions: http://bugs.python.org/issue3770
useProcessesIsDefault = (not isWindows) and ('BSD' not in platform.system())
global options
from optparse import OptionParser, OptionGroup