summaryrefslogtreecommitdiff
path: root/gnu/packages/rust.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-03-14 13:57:47 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:25 +0300
commitf4a6d989bb53385aa54b542cb63bbd176867a09b (patch)
tree2384ef43bfdd78f31e4a87760df7737bd35fc213 /gnu/packages/rust.scm
parent1dffb1e5c88a0843a964bf4d3011dfe1bcff5192 (diff)
gnu: rust-bootstrap: Remove bundled libraries.
* gnu/packages/rust.scm (rust-bootstrap)[source]: Adjust snippet to remove bundled libraries.
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r--gnu/packages/rust.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index c3a581308b..4a69f2a302 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -166,7 +166,11 @@
;; 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")))
+ (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)$"))))
(patches (search-patches "rustc-1.54.0-src.patch"))
(patch-flags '("-p0")))) ;default is -p1
(outputs '("out" "cargo"))