From 6dd01257cfeb88c8317a54cdf94db38de5a91b3a Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Mon, 10 Feb 2025 11:32:49 +0100 Subject: nongnu: firefox: Honor --cores build argument. * nongnu/packages/mozilla.scm (firefox)[arguments]{phases}: Honor --cores build argument in 'build phase. Also removing comments that are outdated by this change. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/mozilla.scm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index f32b2da..c335798 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2021, 2022, 2023 John Kehayias ;;; Copyright © 2022 Pierre Langlois ;;; Copyright © 2023 Tomas Volf +;;; Copyright © 2025 Nicolas Graves (define-module (nongnu packages mozilla) #:use-module (srfi srfi-26) @@ -326,9 +327,9 @@ (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? - '() + `(,(string-append + "-j" (number->string (parallel-job-count)))) '("-j1")) ,@make-flags)))) (add-after 'build 'neutralise-store-references @@ -432,10 +433,6 @@ ;; Test will significantly increase build time but with little rewards. #:tests? #f - ;; WARNING: Parallel build will consume lots of memory! - ;; If you have encountered OOM issue in build phase, try disable it. - ;; #:parallel-build? #f - ;; Some dynamic lib was determined at runtime, so rpath check may fail. #:validate-runpath? #f)) (inputs -- cgit v1.2.3