guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: linux-libre-documentation: Honour ‘--cores’.


From: guix-commits
Subject: 02/02: gnu: linux-libre-documentation: Honour ‘--cores’.
Date: Fri, 3 Mar 2023 14:38:10 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit 73cb232442a50aa00104ad739db93f44df9de073
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Feb 26 01:00:00 2023 +0100

    gnu: linux-libre-documentation: Honour ‘--cores’.
    
    * gnu/packages/linux.scm (linux-libre-documentation)[arguments]:
    Respect PARALLEL-BUILD? and PARALLEL-JOB-COUNT.
---
 gnu/packages/linux.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 3601744c51..3ca2a79666 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1852,11 +1852,14 @@ GnuPG-based password manager like @code{pass}.")
       #:phases #~(modify-phases %standard-phases
                    (delete 'configure)
                    (replace 'build
-                     (lambda _
+                     (lambda* (#:key parallel-build? #:allow-other-keys)
                        (substitute* "Documentation/Makefile"
                          ;; Remove problematic environment check script.
                          ((".*scripts/sphinx-pre-install.*") ""))
-                       (invoke "make" "infodocs")))
+                       (invoke "make" "infodocs"
+                               "-j" (if parallel-build?
+                                        (number->string (parallel-job-count))
+                                        "1"))))
                    (replace 'install
                      (lambda _
                        (let* ((info-dir (string-append #$output "/share/info"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]