all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#55605] [PATCH 1/2] gnu: Add qbe.
@ 2022-05-24  1:21 Antero Mejr via Guix-patches via
  2022-05-24  1:21 ` [bug#55606] [PATCH 2/2] gnu: Add hare Antero Mejr via Guix-patches via
                   ` (2 more replies)
  0 siblings, 3 replies; 38+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-05-24  1:21 UTC (permalink / raw)
  To: 55605; +Cc: Antero Mejr

* gnu/packages/c.scm (qbe): New variable.
---
Hare + QBE builds, tested running a Hello World program using the stdlib.

 gnu/packages/c.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index e14e56ad71..01fd2e9a96 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2020, 2021 Greg Hogan <code@greghogan.com>
 ;;; Copyright © 2021 David Dashyan <mail@davie.li>
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
+;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1096,3 +1097,37 @@ (define-public utf8-h
 C and C++.  The functions it provides are like those from the C header
 string.h, but with a utf8* prefix instead of the str* prefix.")
       (license license:unlicense))))
+
+(define-public qbe
+  (let ((commit "9a3e131cf713f8619705f906caf28c5809708ad0") (revision "0"))
+    (package
+      (name "qbe")
+      (version (git-version "0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "git://c9x.me/qbe.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "04dhdm2j84h9hlqj934wh9v456v3kzh0ayxs1gncyh4inv3b41cf"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f ;no test suite
+         #:make-flags
+         (list (string-append "CC="
+                              ,(cc-for-target))
+               (string-append "DESTDIR="
+                              (assoc-ref %outputs "out"))
+               "PREFIX=")
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)))) ;no configure script
+      (supported-systems (list "x86_64-linux" "aarch64-linux" "riscv64-linux"))
+      (home-page "https://c9x.me/compile/")
+      (synopsis "Compiler backend written in C")
+      (description
+       "QBE aims to be a pure C embeddable backend that provides 70% of the
+performance of advanced compilers in 10% of the code.")
+      (license license:expat))))
-- 
2.36.1





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

end of thread, other threads:[~2022-07-24 16:11 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24  1:21 [bug#55605] [PATCH 1/2] gnu: Add qbe Antero Mejr via Guix-patches via
2022-05-24  1:21 ` [bug#55606] [PATCH 2/2] gnu: Add hare Antero Mejr via Guix-patches via
2022-05-24 17:01   ` Maxime Devos
2022-05-24 17:07   ` Maxime Devos
2022-05-24 17:09   ` Maxime Devos
2022-05-24 17:10   ` Tobias Geerinckx-Rice via Guix-patches via
2022-05-29  0:54   ` [bug#55606] [PATCH] " Antero Mejr via Guix-patches via
2022-06-03 17:54   ` [bug#55606] Antero Mejr via Guix-patches via
2022-06-25 16:54     ` [bug#55606] [PATCH 2/2] gnu: Add hare Liliana Marie Prikler
2022-06-25 17:53       ` ( via Guix-patches via
2022-06-26  4:56         ` Antero Mejr via Guix-patches via
2022-06-25 17:59       ` ( via Guix-patches via
2022-06-26  4:40         ` Antero Mejr via Guix-patches via
2022-06-26  7:30           ` Maxime Devos
2022-06-26  7:34           ` Maxime Devos
2022-06-26 10:58           ` ( via Guix-patches via
2022-06-26 14:07             ` Antero Mejr via Guix-patches via
2022-06-26 14:27               ` Maxime Devos
2022-06-26 14:39                 ` Antero Mejr via Guix-patches via
2022-07-24 16:10               ` ( via Guix-patches via
2022-06-25 21:32       ` Antero Mejr via Guix-patches via
2022-06-26  4:39   ` [bug#55606] [PATCH 1/2] gnu: Add harec Antero Mejr via Guix-patches via
2022-06-26  4:39     ` [bug#55606] [PATCH 2/2] gnu: Add hare Antero Mejr via Guix-patches via
2022-06-26  7:18       ` Liliana Marie Prikler
2022-06-26 11:05         ` ( via Guix-patches via
2022-06-26 14:00         ` Antero Mejr via Guix-patches via
2022-06-26  6:50     ` [bug#55606] [PATCH 1/2] gnu: Add harec Liliana Marie Prikler
2022-06-26 13:59   ` Antero Mejr via Guix-patches via
2022-06-26 13:59     ` [bug#55606] [PATCH 2/2] gnu: Add hare Antero Mejr via Guix-patches via
2022-06-26 14:20       ` Maxime Devos
2022-06-26 14:30         ` Antero Mejr via Guix-patches via
2022-06-26 14:39           ` Maxime Devos
2022-06-26 14:22       ` Maxime Devos
2022-06-26 14:33         ` Antero Mejr via Guix-patches via
2022-06-26 14:44           ` Maxime Devos
2022-06-26 14:53             ` Maxime Devos
2022-05-24 16:56 ` [bug#55605] [PATCH 1/2] gnu: Add qbe Maxime Devos
2022-05-24 21:06 ` Maxime Devos

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.