From db49690fa990eab385d1e6844c285b22c2219f30 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 29 Oct 2009 19:45:06 -0400 Subject: support unlimited parallel jobs dpkg-buildpackage -j sets DEB_BUILD_OPTIONS=parallel=-1. Policy does not cover this but the intent is to allow unlimited parallel jobs. Also, there is no longer any way for parallel to be set to undef, so remove code to handle that. --- Debian/Debhelper/Buildsystem.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Debian/Debhelper/Buildsystem.pm') diff --git a/Debian/Debhelper/Buildsystem.pm b/Debian/Debhelper/Buildsystem.pm index 677e3bf9..7354963d 100644 --- a/Debian/Debhelper/Buildsystem.pm +++ b/Debian/Debhelper/Buildsystem.pm @@ -48,11 +48,8 @@ sub DEFAULT_BUILD_DIRECTORY { # - builddir - specifies build directory to use. Path is relative to the # current (top) directory. If undef or empty, # DEFAULT_BUILD_DIRECTORY directory will be used. -# - parallel - number of parallel process to be spawned for building -# sources. Parallel building needs to be supported by the -# underlying build system for this option to be effective. -# Defaults to undef (i.e. parallel disabled, but do not try to -# enforce this limit by messing with environment). +# - parallel - max number of parallel processes to be spawned for building +# sources (-1 = unlimited; 1 = no parallel) # Derived class can override the constructor to initialize common object # parameters. Do NOT use constructor to execute commands or otherwise # configure/setup build environment. There is absolutely no guarantee the @@ -77,7 +74,7 @@ sub new { if (exists $opts{builddir}) { $this->_set_builddir($opts{builddir}); } - if (defined $opts{parallel} && $opts{parallel} >= 1) { + if (defined $opts{parallel}) { $this->{parallel} = $opts{parallel}; } return $this; -- cgit v1.2.3