From: Ralf Jung Date: Fri, 27 Jul 2012 15:06:17 +0000 (+0200) Subject: Make number of parallel jobs configurable X-Git-Url: https://git.ralfj.de/auto-debuild.git/commitdiff_plain/97c237e196920f1224f0e3912deb321156ef17fa?ds=sidebyside Make number of parallel jobs configurable --- diff --git a/auto_debuild.py b/auto_debuild.py index 9252652..37d8443 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -94,6 +94,7 @@ def createDebianFiles(config): buildSystem = config['buildSystem'] version = config['version'] dbgPackage = config.get('dbgPackage', False) + parallelJobs = int(config.get('parallelJobs', 2)) packageArchitecture = config.get('architecture', 'any') # we return the list of files generated, so we need to know the architecture arch = getArchitecture(config) @@ -154,7 +155,7 @@ def createDebianFiles(config): else: raise Exception("Invalid build system "+buildSystem) # global rules - r.env["DEB_BUILD_OPTIONS"] = 'parallel=2' + r.env["DEB_BUILD_OPTIONS"] = 'parallel='+str(parallelJobs) if not dbgPackage: # disable debug information r.env["DEB_CFLAGS_APPEND"] = '-g0'