guix-patches
[Top][All Lists]
Advanced

[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: Roman Scherer
Subject: [bug#68261] [PATCH 2/2] gnu: rust-jemalloc-sys: Build with large page size.
Date: Fri, 5 Jan 2024 13:36:42 +0100

* 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






reply via email to

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