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

From: Maxim Cournoyer <[email-masked]>
Date: Wed, 12 Feb 2025 21:39:45 +0900

Hi,

Nicolas Graves <[email-masked]> writes:

> * 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

I'd drop the above comment too, which is no longer relevant.

>                                `(,@(if parallel-build?
> -                                      '()
> -                                      '("-j1")) ,@make-flags))))
> +                                      `(,(string-append
> +                                          "-j" (number->string (parallel-job-count))))
> +                                      '("-j1"))
> +                                ,@make-flags))))

Otherwise, LGTM.  Feel free to push!  Oh wait, you don't have commit
access?  If that's something you'd like to have, I encourage you to find
3 person to vouch for you and request it to [email-masked].

Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail>

-- 
Thanks,
Maxim