[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: gnu: Add libgccjit.
From: |
guix-commits |
Subject: |
07/07: gnu: Add libgccjit. |
Date: |
Mon, 16 Mar 2020 09:06:04 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 76d2b9a2e8893dc566d954c3e5be457fbfab5e17
Author: Joseph LaFreniere <address@hidden>
AuthorDate: Wed Mar 11 21:48:59 2020 -0500
gnu: Add libgccjit.
* gnu/packages/gcc.scm (libgccjit): New variable.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/gcc.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 1f10ae5..08afd80 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2016 Carlos Sánchez de La Lama <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2018 Marius Bakke <address@hidden>
+;;; Copyright © 2020 Joseph LaFreniere <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -690,6 +691,34 @@ as the 'native-search-paths' field."
;; report two gfortran@5 that are in fact identical.
gfortran-7)
+(define-public libgccjit
+ (package
+ (inherit gcc-9)
+ (name "libgccjit")
+ (outputs (delete "lib" (package-outputs gcc)))
+ (properties (alist-delete 'hidden? (package-properties gcc)))
+ (arguments
+ (substitute-keyword-arguments `(#:modules ((guix build gnu-build-system)
+ (guix build utils)
+ (ice-9 regex)
+ (srfi srfi-1)
+ (srfi srfi-26))
+ ,@(package-arguments gcc))
+ ((#:configure-flags flags)
+ `(append `("--enable-host-shared"
+ ,(string-append "--enable-languages=jit"))
+ (remove (cut string-match "--enable-languages.*" <>)
+ ,flags)))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'install 'remove-broken-or-conflicting-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (for-each delete-file
+ (find-files (string-append (assoc-ref outputs "out")
"/bin")
+
".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)"))
+ #t))))))))
+
+
(define-public gccgo-4.9
(custom-gcc gcc-4.9 "gccgo" '("go")
%generic-search-paths
- branch master updated (bc6bf14 -> 76d2b9a), guix-commits, 2020/03/16
- 02/07: tests: dhcpd: Adjust network interface name., guix-commits, 2020/03/16
- 03/07: services: dhcpd: Use 'invoke/quiet' when validating the config file., guix-commits, 2020/03/16
- 05/07: tests: opensmtpd: Check /var/spool/mail instead of /var/mail., guix-commits, 2020/03/16
- 06/07: tests: nfs: Ensure 'rpcinfo' can be found., guix-commits, 2020/03/16
- 01/07: tests: rsync: Set PATH., guix-commits, 2020/03/16
- 04/07: tests: opensmtpd: Gracefully handle test failure., guix-commits, 2020/03/16
- 07/07: gnu: Add libgccjit.,
guix-commits <=