diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-06-10 09:20:12 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-06-11 12:39:44 +0300 |
commit | e542108f1341448810eb4f1d4512d4e1c77c9811 (patch) | |
tree | 1920062d238206c0802fd0c19569d0106e103215 /guix | |
parent | 9087ee2f6ec993e100cbc2799d5debaa3516c3de (diff) | |
download | guix-patches-e542108f1341448810eb4f1d4512d4e1c77c9811.tar guix-patches-e542108f1341448810eb4f1d4512d4e1c77c9811.tar.gz |
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
Diffstat (limited to 'guix')
-rw-r--r-- | guix/transformations.scm | 8 |
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) |