Make number of parallel jobs configurable
authorRalf Jung <post@ralfj.de>
Fri, 27 Jul 2012 15:06:17 +0000 (17:06 +0200)
committerRalf Jung <ralfjung-e@gmx.de>
Fri, 27 Jul 2012 15:06:17 +0000 (17:06 +0200)
auto_debuild.py

index 9252652ad246fd82a0c830d0f6f0c0374fcd0051..37d8443bf2f30f1d6ede3dd9633eae1d5da59eba 100755 (executable)
@@ -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'