buildbot:
Use BF_NUMJOBS from user cinfigs rather than passing it as command line argument.
This commit is contained in:
@@ -60,23 +60,12 @@ else:
|
||||
if builder.startswith('linux'):
|
||||
import shutil
|
||||
|
||||
cores = 1
|
||||
if hasattr(os, 'sysconf'):
|
||||
if 'SC_NPROCESSORS_ONLN' in os.sysconf_names:
|
||||
cores = os.sysconf('SC_NPROCESSORS_ONLN')
|
||||
|
||||
if cores > 1:
|
||||
# there're two chroot environments in one machine,
|
||||
# so use only a half of power for better performance
|
||||
cores = cores / 2
|
||||
|
||||
# We're using the same rules as release builder, so tweak
|
||||
# build and install dirs
|
||||
build_dir = os.path.join('..', 'build', builder)
|
||||
install_dir = os.path.join('..', 'install', builder)
|
||||
|
||||
common_options = ['BF_NUMJOBS=' + str(cores + 1),
|
||||
'BF_INSTALLDIR=' + install_dir]
|
||||
common_options = ['BF_INSTALLDIR=' + install_dir]
|
||||
|
||||
# Clean install directory so we'll be sure there's no
|
||||
if os.path.isdir(install_dir):
|
||||
|
Reference in New Issue
Block a user