[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/137: gnu: rust-1.55: Build without jemalloc.
From: |
guix-commits |
Subject: |
04/137: gnu: rust-1.55: Build without jemalloc. |
Date: |
Thu, 21 Dec 2023 04:25:55 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit a2a4e440d30bd60ad7e2a8e7556328b76349e576
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Dec 17 19:55:51 2023 +0200
gnu: rust-1.55: Build without jemalloc.
* gnu/packages/rust.scm (rust-1.55)[arguments]: Remove references to
jemalloc in custom 'configure phase and set rust to build without
jemalloc.
[inputs]: Remove jemalloc.
Change-Id: I388688111c897b15feb6ccee3374219b82f64169
---
gnu/packages/rust.scm | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index f80b7489cd..6596c0537f 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -46,7 +46,6 @@
#:use-module (gnu packages flex)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gdb)
- #:use-module (gnu packages jemalloc)
#:use-module (gnu packages libunwind)
#:use-module (gnu packages linux)
#:use-module (gnu packages llvm)
@@ -437,16 +436,7 @@ safety and thread safety guarantees.")
(binutils (assoc-ref inputs "binutils"))
(rustc (assoc-ref inputs "rustc-bootstrap"))
(cargo (assoc-ref inputs "cargo-bootstrap"))
- (llvm (assoc-ref inputs "llvm"))
- (jemalloc (assoc-ref inputs "jemalloc")))
- ;; The compiler is no longer directly built against jemalloc,
but
- ;; rather via the jemalloc-sys crate (which vendors the jemalloc
- ;; source). To use jemalloc we must enable linking to it
(otherwise
- ;; it would use the system allocator), and set an environment
- ;; variable pointing to the compiled jemalloc.
- (setenv "JEMALLOC_OVERRIDE"
- (search-input-file inputs
- "/lib/libjemalloc_pic.a"))
+ (llvm (assoc-ref inputs "llvm")))
(call-with-output-file "config.toml"
(lambda (port)
(display (string-append "
@@ -463,7 +453,7 @@ prefix = \"" out "\"
sysconfdir = \"etc\"
[rust]
debug=false
-jemalloc=true
+jemalloc=false
default-linker = \"" gcc "/bin/gcc" "\"
channel = \"stable\"
rpath = true
@@ -529,8 +519,7 @@ ar = \"" binutils "/bin/ar" "\"
("cargo-bootstrap" ,rust-bootstrap "cargo")
("which" ,which)))
(inputs
- `(("jemalloc" ,jemalloc)
- ("llvm" ,llvm-13)
+ `(("llvm" ,llvm-13)
("openssl" ,openssl)
("libssh2" ,libssh2) ; For "cargo"
("libcurl" ,curl))) ; For "cargo"
- branch rust-team updated (34eaf5714e -> 2f9f39f441), guix-commits, 2023/12/21
- 04/137: gnu: rust-1.55: Build without jemalloc.,
guix-commits <=
- 02/137: gnu: rust: Update to 1.74.1., guix-commits, 2023/12/21
- 01/137: gnu: rust: Move remove-uninstall-script to rust., guix-commits, 2023/12/21
- 07/137: gnu: rust-crossbeam-channel-0.5: Update to 0.5.9., guix-commits, 2023/12/21
- 08/137: gnu: rust-aho-corasick-1: Update to 1.1.2., guix-commits, 2023/12/21
- 18/137: gnu: rust-pcre2-sys-0.2: Update to 0.2.7., guix-commits, 2023/12/21
- 26/137: gnu: ripgrep: Update to 14.0.3., guix-commits, 2023/12/21
- 31/137: gnu: Add rust-shellexpand-3., guix-commits, 2023/12/21
- 27/137: gnu: Add rust-tui-0.19., guix-commits, 2023/12/21
- 40/137: gnu: Add rust-windows-implement-0.39., guix-commits, 2023/12/21
- 36/137: gnu: Add rust-windows-i686-gnu-0.39., guix-commits, 2023/12/21