summaryrefslogtreecommitdiff
path: root/newmoon/debian/mozconfig
diff options
context:
space:
mode:
Diffstat (limited to 'newmoon/debian/mozconfig')
-rw-r--r--newmoon/debian/mozconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/newmoon/debian/mozconfig b/newmoon/debian/mozconfig
index 61a7e75..e6e85a5 100644
--- a/newmoon/debian/mozconfig
+++ b/newmoon/debian/mozconfig
@@ -71,4 +71,8 @@ ac_add_options --disable-personas
# Debian Sid/Devuan Ceres; 2020-07 only -j1 works due to a bug.
#mk_add_options MOZ_MAKE_FLAGS="-j1"
+# Allow packager to specify number of build threads in the build command:
+PARALLEL_BUILD=$(echo $DEB_BUILD_OPTIONS | sed -e '/parallel=/!s/.*/1/;s/.*parallel=\([0-9]\+\).*/\1/g')
+mk_add_options MOZ_MAKE_FLAGS="-j$PARALLEL_BUILD"
+
#export MOZ_PKG_SPECIAL=gtk2
bgstack15