From e542108f1341448810eb4f1d4512d4e1c77c9811 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 10 Jun 2024 09:20:12 +0300 Subject: transformations: Fix powerpc64le support. * guix/transformations.scm (tuning-compiler): Adjust the wrapper script when building for powerpc* architectures to pass the correct flags. Change-Id: I9d809ac9b707eb8d6afa7b843c95bce29862a752 --- guix/transformations.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/guix/transformations.scm b/guix/transformations.scm index f02b9f94d6..582f8a2729 100644 --- a/guix/transformations.scm +++ b/guix/transformations.scm @@ -504,8 +504,12 @@ (define this (list "-C" (string-append "target_cpu=" #$micro-architecture))) (else - (list (string-append "-march=" - #$micro-architecture)))))))))))) + (list + ;; Some architectures take '-mcpu' and not '-march'. + (if (string-prefix? "power" #$micro-architecture) + (string-append "-mcpu=" #$micro-architecture) + (string-append "-march=" + #$micro-architecture))))))))))))) (define program (program-file (string-append "tuning-compiler-wrapper-" micro-architecture) -- cgit v1.2.3