gnu: gcc-14: Add tuning target.

* gnu/packages/gcc.scm (%gcc-14-x86_64-micro-architectures): New
variable.
(gcc-14)[properties]: Use it.

Change-Id: I00f9e2a4c9d590f97977275b157002ac330b895b
This commit is contained in:
Efraim Flashner 2024-09-30 11:34:34 +03:00
parent edfdc905d9
commit 1d4a44a29b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -645,6 +645,10 @@ (define %gcc-13-x86_64-micro-architectures
(append %gcc-12-x86_64-micro-architectures (append %gcc-12-x86_64-micro-architectures
'("graniterapids"))) ;Intel '("graniterapids"))) ;Intel
(define %gcc-14-x86_64-micro-architectures
(append %gcc-13-x86_64-micro-architectures
'("znver5"))) ;AMD
(define-public gcc-7 (define-public gcc-7
(package (package
(inherit gcc-6) (inherit gcc-6)
@ -839,7 +843,15 @@ (define-public gcc-14
(add-before 'configure 'pre-x86-configure (add-before 'configure 'pre-x86-configure
(lambda _ (lambda _
(substitute* "gcc/config/i386/t-linux64" (substitute* "gcc/config/i386/t-linux64"
(("\\.\\./lib64") "../lib")))))))))) (("\\.\\./lib64") "../lib"))))))))
(properties
`((compiler-cpu-architectures
("aarch64" ,@%gcc-13-aarch64-micro-architectures)
("armhf" ,@%gcc-13-armhf-micro-architectures)
("i686" ,@%gcc-13-x86_64-micro-architectures)
("powerpc64le" ,@%gcc-10-ppc64le-micro-architectures)
("x86_64" ,@%gcc-14-x86_64-micro-architectures))
,@(package-properties gcc-11)))))
;; Note: When changing the default gcc version, update ;; Note: When changing the default gcc version, update