From 1d4a44a29b75cb4d2ffe79aec135efbced02476a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 30 Sep 2024 11:34:34 +0300 Subject: [PATCH] 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 --- gnu/packages/gcc.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 7fceb4be96..c6c7730ad1 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -645,6 +645,10 @@ (define %gcc-13-x86_64-micro-architectures (append %gcc-12-x86_64-micro-architectures '("graniterapids"))) ;Intel +(define %gcc-14-x86_64-micro-architectures + (append %gcc-13-x86_64-micro-architectures + '("znver5"))) ;AMD + (define-public gcc-7 (package (inherit gcc-6) @@ -839,7 +843,15 @@ (define-public gcc-14 (add-before 'configure 'pre-x86-configure (lambda _ (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