From 97c237e196920f1224f0e3912deb321156ef17fa Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 27 Jul 2012 17:06:17 +0200 Subject: [PATCH 1/1] Make number of parallel jobs configurable --- auto_debuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- 2.30.2