summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Bavier <bavier@posteo.net>2023-10-23 21:50:39 -0500
committerEric Bavier <bavier@posteo.net>2023-11-13 22:50:01 -0600
commitd2b118e23c32ea2711ceea4ef6c510ce12b1e5f5 (patch)
tree84df0e7012ff852f1e91e729d4fcef600d4d8436
parenta0d337e79c87d7c38c79d0291974f490cb137a52 (diff)
downloadguix-d2b118e23c32ea2711ceea4ef6c510ce12b1e5f5.tar.gz
gnu: icecat: honor parallel-job-count.
* gnu/packages/gnuzilla.scm (icecat-minimal)[arguments]: Pass the value
of (parallel-job-count) to `mach` if a parallel build is requested.

Change-Id: Idce40ec895bdfbaa284009f8a9ef2770bc05082c
-rw-r--r--gnu/packages/gnuzilla.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 9dfc61a7d7..6a93ab933e 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -1057,10 +1057,12 @@ variable defined below.  It requires guile-json to be installed."
             (lambda* (#:key (make-flags '()) (parallel-build? #t)
                       #:allow-other-keys)
               (apply invoke "./mach" "build"
-                     ;; mach will use parallel build if possible by default
-                     `(,@(if parallel-build?
-                             '()
-                             '("-j1"))
+                     ;; mach will use a wide parallel build if possible by
+                     ;; default, so reign it in if requested.
+                     `(,(string-append
+                         "-j" (number->string (if parallel-build?
+                                                  (parallel-job-count)
+                                                  1)))
                        ,@make-flags))))
           (add-after 'build 'neutralise-store-references
             (lambda _