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:
parent
9087ee2f6e
commit
e542108f13
@ -504,8 +504,12 @@ actual compiler."
|
|||||||
(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)
|
||||||
|
Loading…
Reference in New Issue
Block a user