git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256291
91177308-0d34-0410-b5e6-
96231b3b80d8
if "NUMBER_OF_PROCESSORS" in os.environ:
ncpus = int(os.environ["NUMBER_OF_PROCESSORS"])
if ncpus > 0:
if "NUMBER_OF_PROCESSORS" in os.environ:
ncpus = int(os.environ["NUMBER_OF_PROCESSORS"])
if ncpus > 0:
+ # With more than 32 processes, process creation often fails with
+ # "Too many open files". FIXME: Check if there's a better fix.
+ return min(ncpus, 32)
return 1 # Default
def mkdir_p(path):
return 1 # Default
def mkdir_p(path):