Subject: [PATCH] gnu: librewolf: Honor --cores build argument.

From: Nicolas Graves <[email-masked]>
Date: Mon, 10 Feb 2025 10:16:39 +0100

* gnu/packages/librewolf.scm (librewolf)[arguments]<#:phases>:
Honor --cores build argument during the 'build phase.
---
 gnu/packages/librewolf.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm
index 28abaefe53..d093fd095f 100644
--- a/gnu/packages/librewolf.scm
+++ b/gnu/packages/librewolf.scm
@@ -470,8 +470,10 @@ (define write-flags
                        (apply invoke "./mach" "build"
                               ;; mach will use parallel build if possible by default
                               `(,@(if parallel-build?
-                                      '()
-                                      '("-j1")) ,@make-flags))))
+                                      `(,(string-append
+                                          "-j" (number->string (parallel-job-count))))
+                                      '("-j1"))
+                                ,@make-flags))))
                    (add-after 'build 'neutralise-store-references
                      (lambda _
                        ;; Mangle the store references to compilers &
-- 
2.48.1

-- 
Best regards,
Nicolas Graves