GNU bug report logs - #65107
[PATCH] gnu: Add gf.

Previous Next

Package: guix-patches;

Reported by: dan <i <at> dan.games>

Date: Sun, 6 Aug 2023 05:53:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Hilton Chain <hako <at> ultrarare.space>
To: dan <i <at> dan.games>
Cc: 65107 <at> debbugs.gnu.org
Subject: [bug#65107] [PATCH] gnu: Add gf.
Date: Mon, 07 Aug 2023 09:58:24 +0800
On Sun, 06 Aug 2023 22:51:30 +0800,
Hilton Chain wrote:
> Can you move these flags to #:make-flags?
>
> For example:
> --8<---------------cut here---------------start------------->8---
> (arguments
>  (list [...]
>        #:make-flags
>        #~(list "-g" "-O2" [...])
>        #:phases
>        #~(modify-phases %standard-phases
>            (replace 'build
>              (lambda* (#:key make-flags #:allow-other-keys)
>                (apply invoke
>                       `(#$(cxx-for-target) "gf2.cpp" "-o" "gf2"
>                         ,@make-flags)))))))
> --8<---------------cut here---------------end--------------->8---

Sorry, `quasiquote' is not necessary here because `apply' accepts one
list for the last argument and the above code just makes a list.  The
`apply' invocation I wrote should be replaced to:
--8<---------------cut here---------------start------------->8---
(apply invoke
       #$(cxx-for-target) "gf2.cpp" "-o" "gf2"
       make-flags)
--8<---------------cut here---------------end--------------->8---

Thanks




This bug report was last modified 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.