mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: commencement: Memoize uses of 'cross-gcc-wrapper'.
This improves caching down the road. * gnu/packages/commencement.scm (gcc-boot0-intermediate-wrapped) (gcc-boot0-wrapped): Use 'mlambda' instead of 'lambda'.
This commit is contained in:
parent
7e1a74da93
commit
32793c09ff
1 changed files with 13 additions and 11 deletions
|
@ -2070,12 +2070,13 @@ (define (wrap-program program)
|
|||
("bash" ,bash)))
|
||||
(inputs '())))
|
||||
|
||||
(define (gcc-boot0-intermediate-wrapped)
|
||||
;; Make the cross-tools GCC-BOOT0 and BINUTILS-BOOT0 available under the
|
||||
;; non-cross names.
|
||||
(cross-gcc-wrapper gcc-boot0 binutils-boot0
|
||||
glibc-final-with-bootstrap-bash
|
||||
(car (assoc-ref (%boot1-inputs) "bash"))))
|
||||
(define gcc-boot0-intermediate-wrapped
|
||||
(mlambda ()
|
||||
;; Make the cross-tools GCC-BOOT0 and BINUTILS-BOOT0 available under the
|
||||
;; non-cross names.
|
||||
(cross-gcc-wrapper gcc-boot0 binutils-boot0
|
||||
glibc-final-with-bootstrap-bash
|
||||
(car (assoc-ref (%boot1-inputs) "bash")))))
|
||||
|
||||
(define static-bash-for-glibc
|
||||
;; A statically-linked Bash to be used by GLIBC-FINAL in system(3) & co.
|
||||
|
@ -2166,11 +2167,12 @@ (define glibc-final
|
|||
|
||||
,@(package-arguments glibc-final-with-bootstrap-bash)))))
|
||||
|
||||
(define (gcc-boot0-wrapped)
|
||||
;; Make the cross-tools GCC-BOOT0 and BINUTILS-BOOT0 available under the
|
||||
;; non-cross names.
|
||||
(cross-gcc-wrapper gcc-boot0 binutils-boot0 glibc-final
|
||||
(car (assoc-ref (%boot1-inputs) "bash"))))
|
||||
(define gcc-boot0-wrapped
|
||||
(mlambda ()
|
||||
;; Make the cross-tools GCC-BOOT0 and BINUTILS-BOOT0 available under the
|
||||
;; non-cross names.
|
||||
(cross-gcc-wrapper gcc-boot0 binutils-boot0 glibc-final
|
||||
(car (assoc-ref (%boot1-inputs) "bash")))))
|
||||
|
||||
(define (%boot2-inputs)
|
||||
;; 3rd stage inputs.
|
||||
|
|
Loading…
Reference in a new issue