transformations: tuned-package: Use target on cross-compile.
* guix/transformations.scm (tuned-package): Use either bag-target if available or bag-system to select the CPU architecture of the package that is going to be tuned. This enables the tuning of cross-compiled packages. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
04f71edb73
commit
19b6173708
1 changed files with 3 additions and 2 deletions
|
@ -529,8 +529,9 @@ (define (lower* . args)
|
|||
;; leading to an obscure build error, check whether the compiler is known
|
||||
;; to support MICRO-ARCHITECTURE. If not, bail out.
|
||||
(let* ((lowered (apply lower args))
|
||||
(architecture (match (string-tokenize (bag-system lowered)
|
||||
%not-hyphen)
|
||||
(target (or (bag-target lowered)
|
||||
(bag-system lowered)))
|
||||
(architecture (match (string-tokenize target %not-hyphen)
|
||||
((arch _ ...) arch)))
|
||||
(compiler (any (match-lambda
|
||||
((label (? package? p) . _)
|
||||
|
|
Loading…
Reference in a new issue