all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Faiz via Guix-patches via <guix-patches@gnu.org>
To: 72494@debbugs.gnu.org
Cc: ashvithshetty10@gmail.com
Subject: [bug#72494] [PATCH 0/1] Add C3
Date: Tue, 06 Aug 2024 15:07:07 +0000	[thread overview]
Message-ID: <C1B52784-9BF4-40F3-88D2-6D2D8EE5ED45@disroot.org> (raw)
In-Reply-To: <cover.1722933384.git.ashvithshetty10@gmail.com>

Hello Ashvith,

I'd like to give my feedback on this patch series. I'll send an updated patch series using the suggestions below if I have the time.

> +(define-public c3c-bootstrap
> +  (package
> +    (name "c3c")
> +    (version "0.6.1")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/c3lang/c3c")
> +             (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "0xjl3yghyqmqv9118nhcix3xywlpdirqc0dlmdaghdkja0wr19rw"))
> +       (snippet #~(begin
> +                    (use-modules (guix build utils))
> +                    (substitute* "CMakeLists.txt"
> +                      (("\\$\\{LLVM_LIBRARY_DIRS\\}")
> +                       (string-append #$lld-18 "/lib/ "
> +                                      #$llvm-18 "/lib/")))))))
> +    (build-system cmake-build-system)
> +    (arguments
> +     '(#:configure-flags '("-DCMAKE_INSTALL_LIBDIR=lib")
> +       ;; TODO: Fix test
> +       #:tests? #f))

According to its README, the unit tests are run using the built c3c with its compile-test subcommand: `c3c compile-test test/unit`. The `check` build phase needs to be replaced to run this command.

A patch sent upstream to add a proper `check` target would be good, and the test/ subdirectory would probably also need to be specified as part of the out-of-tree build.

> +    (inputs (list curl libffi llvm-18 lld-18))

The curl dependency should be removed, since c3c's optional dependency downloading functionality isn't needed in Guix.




  parent reply	other threads:[~2024-08-06 15:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-06 11:02 [bug#72494] [PATCH 0/1] Add C3 Ashvith Shetty
2024-08-06 11:04 ` [bug#72494] [PATCH 1/1] gnu: Add C3 1.6.1 Ashvith Shetty
2024-08-06 15:07 ` Adam Faiz via Guix-patches via [this message]
2024-08-06 19:32 ` [bug#72494] [PATCH v1] " Ashvith Shetty
2024-08-06 19:37 ` [bug#72494] [PATCH v2] " Ashvith Shetty
2024-08-07  6:36 ` [bug#72494] [PATCH v3] gnu: Add c3c-bootstrap Adam Faiz via Guix-patches via
2024-08-10 17:59   ` Ashvith Shetty
2024-08-11 14:47     ` Adam Faiz via Guix-patches via
2024-08-11 14:57 ` [bug#72494] [PATCH v4] " Adam Faiz via Guix-patches via
2024-08-12 18:38   ` Ashvith Shetty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C1B52784-9BF4-40F3-88D2-6D2D8EE5ED45@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=72494@debbugs.gnu.org \
    --cc=adam.faiz@disroot.org \
    --cc=ashvithshetty10@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.