me
/
guix
Archived
1
0
Fork 0

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.
master
Efraim Flashner 2022-07-10 20:07:09 +03:00
parent ca4bfb0f2d
commit 05e3ff8f38
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 9 additions and 3 deletions

View File

@ -362,9 +362,15 @@ safety and thread safety guarantees.")
(uri (rust-uri version)) (uri (rust-uri version))
(sha256 (base32 "07l28f7grdmi65naq71pbmvdd61hwcpi40ry7kp7dy7m233rldxj")) (sha256 (base32 "07l28f7grdmi65naq71pbmvdd61hwcpi40ry7kp7dy7m233rldxj"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet '(for-each delete-file-recursively (snippet
'("src/llvm-project" '(begin
"vendor/tikv-jemalloc-sys/jemalloc"))))) (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")) (outputs '("out" "cargo"))
(properties '((timeout . 72000) ;20 hours (properties '((timeout . 72000) ;20 hours
(max-silent-time . 18000))) ;5 hours (for armel) (max-silent-time . 18000))) ;5 hours (for armel)