mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: rust: Remove bundled compiled libraries.
* gnu/packages/rust.scm (rust-bootstrap)[source]: Adjust snippet to also remove bundled pre-compiled shared libraries. (rust-1.55): Same.
This commit is contained in:
parent
4c3532d7ab
commit
82649c6cd7
1 changed files with 10 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
;;; Copyright © 2016 Nikita <nikita@n0.is>
|
||||
;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com>
|
||||
;;; Copyright © 2017, 2018 Nikolai Merinov <nikolai.merinov@member.fsf.org>
|
||||
;;; Copyright © 2017, 2019-2022 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2017, 2019-2023 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2018 Danny Milosavljevic <dannym+a@scratchpost.org>
|
||||
;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
|
||||
|
@ -162,7 +162,11 @@ (define rust-bootstrap
|
|||
(snippet
|
||||
'(begin
|
||||
(for-each delete-file-recursively
|
||||
'("src/llvm-project"))))
|
||||
'("src/llvm-project"))
|
||||
;; Remove vendored dynamically linked libraries.
|
||||
;; find . -not -type d -executable -exec file {} \+ | grep ELF
|
||||
(delete-file "vendor/vte/vim10m_match")
|
||||
(delete-file "vendor/vte/vim10m_table")))
|
||||
(patches (search-patches "rustc-1.54.0-src.patch"))
|
||||
(patch-flags '("-p0")))) ;default is -p1
|
||||
(outputs '("out" "cargo"))
|
||||
|
@ -368,6 +372,10 @@ (define rust-1.55
|
|||
(for-each delete-file-recursively
|
||||
'("src/llvm-project"
|
||||
"vendor/tikv-jemalloc-sys/jemalloc"))
|
||||
;; Remove vendored dynamically linked libraries.
|
||||
;; find . -not -type d -executable -exec file {} \+ | grep ELF
|
||||
(delete-file "vendor/vte/vim10m_match")
|
||||
(delete-file "vendor/vte/vim10m_table")
|
||||
;; Add support for riscv64-linux.
|
||||
(substitute* "vendor/tikv-jemallocator/src/lib.rs"
|
||||
((" target_arch = \"s390x\"," all)
|
||||
|
|
Loading…
Reference in a new issue