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
This commit is contained in:
Efraim Flashner 2024-06-10 09:20:12 +03:00
parent 9087ee2f6e
commit e542108f13
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -504,8 +504,12 @@ (define this
(list "-C" (string-append "target_cpu=" (list "-C" (string-append "target_cpu="
#$micro-architecture))) #$micro-architecture)))
(else (else
(list (string-append "-march=" (list
#$micro-architecture)))))))))))) ;; 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 (define program
(program-file (string-append "tuning-compiler-wrapper-" micro-architecture) (program-file (string-append "tuning-compiler-wrapper-" micro-architecture)