diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-07-10 20:07:09 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-07-10 20:38:59 +0300 |
commit | 05e3ff8f3881caee73a8490d9bee8d3e82e7db13 (patch) | |
tree | 893ee3dd427dbf1d06a6429205d3fa8ad995f5d0 /gnu/packages/rust.scm | |
parent | ca4bfb0f2de7a2c9997f92574be65fcba4e86d64 (diff) |
gnu: rust-1.55: Fix building on riscv64-linux.
* gnu/packages/rust.scm (rust-1.55)[source]: Adjust snippet to fix
riscv64 support in jemallocator crate.
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r-- | gnu/packages/rust.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 2942c5cb1f..25472fefb0 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -362,9 +362,15 @@ safety and thread safety guarantees.") (uri (rust-uri version)) (sha256 (base32 "07l28f7grdmi65naq71pbmvdd61hwcpi40ry7kp7dy7m233rldxj")) (modules '((guix build utils))) - (snippet '(for-each delete-file-recursively - '("src/llvm-project" - "vendor/tikv-jemalloc-sys/jemalloc"))))) + (snippet + '(begin + (for-each delete-file-recursively + '("src/llvm-project" + "vendor/tikv-jemalloc-sys/jemalloc")) + ;; Add support for riscv64-linux. + (substitute* "vendor/tikv-jemallocator/src/lib.rs" + ((" target_arch = \"s390x\"," all) + (string-append all "\n target_arch = \"riscv64\","))))))) (outputs '("out" "cargo")) (properties '((timeout . 72000) ;20 hours (max-silent-time . 18000))) ;5 hours (for armel) |