mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: gcc-toolchain: Remove "glibc:debug" and "glibc:static" from "out".
With this change, the closure of "gcc-toolchain:out" goes from 1 GiB to 393 MiB, which was the intention. * gnu/packages/commencement.scm (make-gcc-toolchain): Filter out "libc-debug" and "libc-static" from OUT.
This commit is contained in:
parent
4f060bf2fe
commit
badd216172
1 changed files with 7 additions and 4 deletions
|
@ -3828,14 +3828,17 @@ (define* (make-gcc-toolchain gcc
|
||||||
'(#:modules ((guix build union))
|
'(#:modules ((guix build union))
|
||||||
#:builder (begin
|
#:builder (begin
|
||||||
(use-modules (ice-9 match)
|
(use-modules (ice-9 match)
|
||||||
|
(srfi srfi-1)
|
||||||
(srfi srfi-26)
|
(srfi srfi-26)
|
||||||
(guix build union))
|
(guix build union))
|
||||||
|
|
||||||
(let ((out (assoc-ref %outputs "out")))
|
(let ((out (assoc-ref %outputs "out")))
|
||||||
|
(union-build out
|
||||||
(match %build-inputs
|
(filter-map (match-lambda
|
||||||
(((names . directories) ...)
|
(("libc-debug" . _) #f)
|
||||||
(union-build out directories)))
|
(("libc-static" . _) #f)
|
||||||
|
((_ . directory) directory))
|
||||||
|
%build-inputs))
|
||||||
|
|
||||||
(union-build (assoc-ref %outputs "debug")
|
(union-build (assoc-ref %outputs "debug")
|
||||||
(list (assoc-ref %build-inputs
|
(list (assoc-ref %build-inputs
|
||||||
|
|
Loading…
Reference in a new issue