unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [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	[flat|nested] 4+ messages in thread

* [bug#56224] [PATCH] guix: utils: Add as-for-target.
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2022-08-04  9:12 UTC (permalink / raw)
  To: Antero Mejr; +Cc: 56224

Hi Antero,

Antero Mejr <antero@mailbox.org> skribis:

> * guix/utils.scm (as-for-target): New function.

Out of curiosity, did you encounter packages needing it?  (That hasn’t
been the case so far but maybe we were just lucky.)

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#56224] [PATCH] guix: utils: Add as-for-target.
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-08-04 12:02 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 56224

[-- Attachment #1: Type: text/html, Size: 1600 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#56224: [PATCH] guix: utils: Add as-for-target.
  2022-08-04 12:02   ` Antero Mejr via Guix-patches via
@ 2022-08-04 22:00     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-08-04 22:00 UTC (permalink / raw)
  To: Antero Mejr; +Cc: 56224-done

Hi,

Antero Mejr <antero@mailbox.org> skribis:

> Yes, the hare programming language compiler package uses as-for-target. That package is a work in progress: 
> https://issues.guix.gnu.org/55606 
>   
> as-for-target is also mentioned in a comment in rasperrypi.scm, in the raspi-arm64-chainloader package. 

Alright, I see.

Applied, thanks!

Ludo’.




^ permalink raw reply	[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 inbox:

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).