summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-06-10 09:20:12 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-06-11 12:39:44 +0300
commite542108f1341448810eb4f1d4512d4e1c77c9811 (patch)
tree1920062d238206c0802fd0c19569d0106e103215
parent9087ee2f6ec993e100cbc2799d5debaa3516c3de (diff)
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
-rw-r--r--guix/transformations.scm8
1 files 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 @@ actual compiler."
(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)