summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-12-06 19:43:22 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-12-06 19:43:22 +0000
commit64e286e4be317f6d5a7a027327d982a3ea2b4bbf (patch)
treee9eac8401a1d749ab91614cc6f3e8917d9f2b398
parentc8db3644ba60f03c4706ba579577677aa8073f2f (diff)
downloadmorph-64e286e4be317f6d5a7a027327d982a3ea2b4bbf.tar.gz
add --no-distcc option to disable distcc
-rwxr-xr-xmorph1
-rw-r--r--morphlib/builder.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/morph b/morph
index 96987fa8..c4420e2f 100755
--- a/morph
+++ b/morph
@@ -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):