diff options
author | Christian Goetze <cg@lindenlab.com> | 2009-07-30 01:09:49 +0000 |
---|---|---|
committer | Christian Goetze <cg@lindenlab.com> | 2009-07-30 01:09:49 +0000 |
commit | 6603a2d21004b78754e3a7d5f5731552800873be (patch) | |
tree | 9c488d71b38896f3154d45c649ae75931cc13813 /indra/develop.py | |
parent | 87776b19443030bece31c26290d1092bf6cbb3e6 (diff) |
Reduce job count for linux builds to something the build farm can survive
Diffstat (limited to 'indra/develop.py')
-rwxr-xr-x | indra/develop.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/develop.py b/indra/develop.py index b40e81bb07..39bb48dfa5 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -383,16 +383,20 @@ class LinuxSetup(UnixSetup): if job_count is None: hosts, job_count = count_distcc_hosts() + hostname = socket.gethostname() if hosts == 1: - hostname = socket.gethostname() if hostname.startswith('station'): hosts, job_count = mk_distcc_hosts('station', 36, 2) os.environ['DISTCC_HOSTS'] = hosts if hostname.startswith('eniac'): hosts, job_count = mk_distcc_hosts('eniac', 71, 2) os.environ['DISTCC_HOSTS'] = hosts - if job_count > 12: - job_count = 12; + if hostname.startswith('build'): + max_jobs = 6 + else: + max_jobs = 12 + if job_count > max_jobs: + job_count = max_jobs; opts.extend(['-j', str(job_count)]) if targets: |