summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-01 14:16:21 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-01 14:16:21 +0000
commitc8e5e422553fec66b223e8f03ebadf96e7a3bdcf (patch)
tree387d8b7275ff700821a42390eb7f7f115b407913 /morph
parent2da1a5d505bd4d500746735194fe52758ec617a6 (diff)
downloadmorph-c8e5e422553fec66b223e8f03ebadf96e7a3bdcf.tar.gz
Add --max-jobs option
Diffstat (limited to 'morph')
-rwxr-xr-xmorph6
1 files changed, 6 insertions, 0 deletions
diff --git a/morph b/morph
index 65c83229..c3cda8bb 100755
--- a/morph
+++ b/morph
@@ -44,6 +44,12 @@ 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.integer(['max-jobs'],
+ 'run at most N parallel jobs with make (default '
+ 'is to a value based on the number of CPUs '
+ 'in the machine running morph',
+ metavar='N',
+ default=0)
def cmd_build(self, morph_filenames):
tempdir = morphlib.tempdir.Tempdir()