mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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
1 changed files with 6 additions and 2 deletions
|
@ -504,8 +504,12 @@ (define this
|
|||
(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)
|
||||
|
|
Loading…
Reference in a new issue