mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: gdc: Fix build.
* gnu/packages/gcc.scm (gdc): Add gdc-11 (and gcc) to native inputs. Fixes: #1460 Co-authored-by: Dariqq <dariqq@posteo.net> Change-Id: I1d25704829d48a9819cc493e227b050083b18ea4
This commit is contained in:
parent
0dbe72111f
commit
2c922f9371
1 changed files with 13 additions and 3 deletions
|
@ -1285,7 +1285,7 @@ as the 'native-search-paths' field."
|
|||
"gfortran" '("fortran")
|
||||
%generic-search-paths)))
|
||||
|
||||
(define-public gdc-11
|
||||
(define-public gdc-11 ;kept for bootstrapping
|
||||
(hidden-package
|
||||
(custom-gcc gcc-11 "gdc" '("d")
|
||||
%generic-search-paths)))
|
||||
|
@ -1293,8 +1293,18 @@ as the 'native-search-paths' field."
|
|||
;;; Alias tracking the latest GDC version.
|
||||
(define-public gdc
|
||||
(hidden-package
|
||||
(custom-gcc gcc "gdc" '("d")
|
||||
%generic-search-paths)))
|
||||
(let ((base (custom-gcc gcc
|
||||
"gdc" '("d")
|
||||
%generic-search-paths)))
|
||||
(package
|
||||
(inherit base)
|
||||
(native-inputs
|
||||
(modify-inputs (package-native-inputs base)
|
||||
;; Since GCC 12, GDC is self-hosted, requiring a version of itself
|
||||
;; to build.
|
||||
;; XXX: GCC must be prepended as well to avoid an issue with the C++
|
||||
;; headers ordering.
|
||||
(prepend gcc gdc-11)))))))
|
||||
|
||||
(define-public gm2
|
||||
(hidden-package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue