* [bug#56224] [PATCH] guix: utils: Add as-for-target.
@ 2022-06-25 21:30 Antero Mejr via Guix-patches via
2022-08-04 9:12 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-06-25 21:30 UTC (permalink / raw)
To: 56224
* guix/utils.scm (as-for-target): New function.
---
guix/utils.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/guix/utils.scm b/guix/utils.scm
index 745da98a79..4cfa9d863f 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 @@ (define-module (guix utils)
target-riscv64?
target-64bit?
ar-for-target
+ as-for-target
cc-for-target
cxx-for-target
ld-for-target
@@ -742,6 +744,11 @@ (define* (ar-for-target #:optional (target (%current-target-system)))
(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")
--
2.36.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-04 22:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-25 21:30 [bug#56224] [PATCH] guix: utils: Add as-for-target Antero Mejr via Guix-patches via
2022-08-04 9:12 ` Ludovic Courtès
2022-08-04 12:02 ` Antero Mejr via Guix-patches via
2022-08-04 22:00 ` bug#56224: " Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.