diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-12-06 19:43:22 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-12-06 19:43:22 +0000 |
commit | 64e286e4be317f6d5a7a027327d982a3ea2b4bbf (patch) | |
tree | e9eac8401a1d749ab91614cc6f3e8917d9f2b398 | |
parent | c8db3644ba60f03c4706ba579577677aa8073f2f (diff) | |
download | morph-64e286e4be317f6d5a7a027327d982a3ea2b4bbf.tar.gz |
add --no-distcc option to disable distcc
-rwxr-xr-x | morph | 1 | ||||
-rw-r--r-- | morphlib/builder.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -40,6 +40,7 @@ class Morph(cliapp.Application): 'put build results in DIR (default: %default)', metavar='DIR', default='.') self.settings.boolean(['no-ccache'], 'do not use ccache') + self.settings.boolean(['no-distcc'], 'do not use distcc') self.settings.integer(['max-jobs'], 'run at most N parallel jobs with make (default ' 'is to a value based on the number of CPUs ' diff --git a/morphlib/builder.py b/morphlib/builder.py index b1ce70b3..f59b255a 100644 --- a/morphlib/builder.py +++ b/morphlib/builder.py @@ -197,7 +197,8 @@ class Chunk(BinaryBlob): self.ex.env['PATH'] = ('/usr/lib/ccache:%s' % self.ex.env['PATH']) self.ex.env['CCACHE_BASEDIR'] = self.tempdir.dirname - self.ex.env['CCACHE_PREFIX'] = 'distcc' + if not self.settings['no-distcc']: + self.ex.env['CCACHE_PREFIX'] = 'distcc' logging.debug('Environment for building chunk:') for key in sorted(self.ex.env): |