[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68261] [PATCH 2/2] gnu: rust-jemalloc-sys: Build with large page si
From: |
Efraim Flashner |
Subject: |
[bug#68261] [PATCH 2/2] gnu: rust-jemalloc-sys: Build with large page size. |
Date: |
Fri, 5 Jan 2024 14:48:44 +0200 |
Since we don't carry the results of one rust package to the next and
have to rebuild everything, it would be better to add this to
(guix build cargo-build-system), in the configure phase. Then it will
apply to every package which is built using the cargo-build-system.
On Fri, Jan 05, 2024 at 01:36:42PM +0100, Roman Scherer wrote:
> * gnu/packages/crates-io.scm (rust-jemalloc-sys): Build with large page size.
>
> Change-Id: I91ed8450952204c1ecba19604521dd8b8ec554ec
> ---
> gnu/packages/crates-io.scm | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index 1bfd8fb143..f8eb0c293f 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -39286,7 +39286,11 @@ (define-public rust-jemalloc-sys-0.5
> ;; https://github.com/tikv/jemallocator/issues/19
> (setenv
> "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1")
> (setenv "JEMALLOC_OVERRIDE"
> - (string-append jemalloc
> "/lib/libjemalloc_pic.a"))))))))
> + (string-append jemalloc "/lib/libjemalloc_pic.a")))))
> + (add-after 'configure 'with-lg-page-jemalloc
> + (lambda _
> + (when (target-aarch64?)
> + (setenv "JEMALLOC_SYS_WITH_LG_PAGE" "14")))))))
> (native-inputs
> (list jemalloc))
> (home-page "https://github.com/tikv/jemallocator")
> --
> 2.41.0
>
>
>
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature