[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: transformations: tuned-package: Use target on cross-compile.
From: |
guix-commits |
Subject: |
04/08: transformations: tuned-package: Use target on cross-compile. |
Date: |
Sun, 17 Sep 2023 09:37:20 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 19b617370844ad48eab68e6fc4b9e47665f71710
Author: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
AuthorDate: Wed Jul 26 17:37:29 2023 +0200
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>
---
guix/transformations.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/guix/transformations.scm b/guix/transformations.scm
index ede914456f..9cba6bedab 100644
--- a/guix/transformations.scm
+++ b/guix/transformations.scm
@@ -529,8 +529,9 @@ system that builds code for MICRO-ARCHITECTURE; otherwise
raise an error."
;; 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) . _)
- branch master updated (af08de2b2d -> 5abc40d7f7), guix-commits, 2023/09/17
- 01/08: tests: childhurd: Add missing module imports., guix-commits, 2023/09/17
- 02/08: services: syncthing: Ensure that service runs after mounting home directories., guix-commits, 2023/09/17
- 04/08: transformations: tuned-package: Use target on cross-compile.,
guix-commits <=
- 05/08: gnu: spdlog: Update to 1.12.0., guix-commits, 2023/09/17
- 06/08: gnu: home: zsh: Load environment when running via ssh, guix-commits, 2023/09/17
- 08/08: gnu: cockatrice: add wayland dependency, guix-commits, 2023/09/17
- 03/08: services: dhcp-client-configuration: Allow provision override., guix-commits, 2023/09/17
- 07/08: gnu: file-systems: Add variable %base-live-file-systems., guix-commits, 2023/09/17