mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: gcc@11: Update 'compiler-cpu-architectures' property.
* gnu/packages/gcc.scm (%gcc-11-aarch64-micro-architectures) (%gcc-11-armhf-micro-architectures) (%gcc-11-x86_64-micro-architectures): New variables. (gcc-11)[properties]: Use them.
This commit is contained in:
parent
93f601d97c
commit
dc9503dd5e
1 changed files with 19 additions and 2 deletions
|
@ -583,6 +583,20 @@ (define %gcc-10-x86_64-micro-architectures
|
||||||
|
|
||||||
"znver2" "znver3")))
|
"znver2" "znver3")))
|
||||||
|
|
||||||
|
(define %gcc-11-aarch64-micro-architectures
|
||||||
|
;; Suitable '-march' values for GCC 11.
|
||||||
|
%gcc-10-aarch64-micro-architectures) ;unchanged
|
||||||
|
|
||||||
|
(define %gcc-11-armhf-micro-architectures
|
||||||
|
%gcc-10-armhf-micro-architectures)
|
||||||
|
|
||||||
|
(define %gcc-11-x86_64-micro-architectures
|
||||||
|
;; Suitable '-march' values for GCC 11.
|
||||||
|
(append %gcc-10-x86_64-micro-architectures
|
||||||
|
'("sapphirerapids" "alterlake" "rocketlake" ;Intel
|
||||||
|
|
||||||
|
"btver1" "btver2"))) ;AMD
|
||||||
|
|
||||||
(define-public gcc-7
|
(define-public gcc-7
|
||||||
(package
|
(package
|
||||||
(inherit gcc-6)
|
(inherit gcc-6)
|
||||||
|
@ -678,8 +692,11 @@ (define-public gcc-11
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet gcc-canadian-cross-objdump-snippet)))
|
(snippet gcc-canadian-cross-objdump-snippet)))
|
||||||
|
|
||||||
;; TODO: Add newly supported micro-architectures.
|
(properties
|
||||||
(properties (package-properties gcc-10))))
|
`((compiler-cpu-architectures
|
||||||
|
("aarch64" ,@%gcc-11-aarch64-micro-architectures)
|
||||||
|
("armhf" ,@%gcc-11-armhf-micro-architectures)
|
||||||
|
("x86_64" ,@%gcc-11-x86_64-micro-architectures))))))
|
||||||
|
|
||||||
;; Note: When changing the default gcc version, update
|
;; Note: When changing the default gcc version, update
|
||||||
;; the gcc-toolchain-* definitions.
|
;; the gcc-toolchain-* definitions.
|
||||||
|
|
Loading…
Reference in a new issue