me
/
guix
Archived
1
0
Fork 0

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
master
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
1 changed files with 6 additions and 2 deletions

View File

@ -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)