efraim pushed a commit to branch rust-team
in repository guix.

commit 61327da5be40e92acc372a669771bf355bbec6fe
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Mar 14 13:58:34 2023 +0200

    gnu: rust-1.55: Remove bundled libraries.
    
    * gnu/packages/rust.scm (rust-1.55)[source]: Adjust snippet to remove
    bundled libraries.
---
 gnu/packages/rust.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index bcf5a53783..a1dc343492 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -378,6 +378,10 @@ safety and thread safety guarantees.")
            ;; find . -not -type d -executable -exec file {} \+ | grep ELF
            (delete-file "vendor/vte/vim10m_match")
            (delete-file "vendor/vte/vim10m_table")
+           ;; Also remove the bundled (mostly Windows) libraries.
+           ;; find vendor -not -type d -exec file {} \+ | grep PE32
+           (for-each delete-file
+                     (find-files "vendor" ".*\\.(a|dll|exe|lib)$"))
            ;; Add support for riscv64-linux.
            (substitute* "vendor/tikv-jemallocator/src/lib.rs"
              (("    target_arch = \"s390x\"," all)

Reply via email to