[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: utils: Add as-for-target.
From: |
guix-commits |
Subject: |
02/09: utils: Add as-for-target. |
Date: |
Thu, 4 Aug 2022 18:16:08 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 68edaf467fccd93103f08a5a225f7b475454694b
Author: Antero Mejr <antero@mailbox.org>
AuthorDate: Sat Jun 25 21:30:32 2022 +0000
utils: Add as-for-target.
* guix/utils.scm (as-for-target): New function.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/utils.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/guix/utils.scm b/guix/utils.scm
index 329ef62dde..b992b49815 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2018 Steve Sprang <scs@stevesprang.com>
;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info>
;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -103,6 +104,7 @@
target-riscv64?
target-64bit?
ar-for-target
+ as-for-target
cc-for-target
cxx-for-target
ld-for-target
@@ -742,6 +744,11 @@ architecture (x86_64)?"
(string-append target "-ar")
"ar"))
+(define* (as-for-target #:optional (target (%current-target-system)))
+ (if target
+ (string-append target "-as")
+ "as"))
+
(define* (cc-for-target #:optional (target (%current-target-system)))
(if target
(string-append target "-gcc")
- branch master updated (6048c05592 -> a5a88b0248), guix-commits, 2022/08/04
- 02/09: utils: Add as-for-target.,
guix-commits <=
- 03/09: disarchive-manifest: Handle tar.xz archives., guix-commits, 2022/08/04
- 01/09: doc: Fix Guix manual URLs in 'htmlxref.cnf'., guix-commits, 2022/08/04
- 05/09: gnu: lightdm: Add bash-minimal as an input., guix-commits, 2022/08/04
- 06/09: gnu: Add lkrg., guix-commits, 2022/08/04
- 07/09: gnu: openssl: Cross-compile to mingw., guix-commits, 2022/08/04
- 04/09: gnu: emacs-next: Enable SQLite3 support., guix-commits, 2022/08/04
- 08/09: utils: Add target-mips64el?., guix-commits, 2022/08/04
- 09/09: gnu: openssl: Use 'target-*' predicates from (guix utils)., guix-commits, 2022/08/04