summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-29 19:45:06 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-29 19:48:51 -0400
commitdb49690fa990eab385d1e6844c285b22c2219f30 (patch)
treebe3872e2888aa019f55a1d9f5032ee02a5e53b45 /Debian/Debhelper/Buildsystem.pm
parenta4a29fb6c4ae999ff732a0b9479a767f685cad2f (diff)
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.
Diffstat (limited to 'Debian/Debhelper/Buildsystem.pm')
-rw-r--r--Debian/Debhelper/Buildsystem.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/Debian/Debhelper/Buildsystem.pm b/Debian/Debhelper/Buildsystem.pm
index 677e3bf..7354963 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;