[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/10: gnu: Parameterize libgccjit.
From: |
guix-commits |
Subject: |
01/10: gnu: Parameterize libgccjit. |
Date: |
Sun, 11 Sep 2022 09:48:17 -0400 (EDT) |
lilyp pushed a commit to branch master
in repository guix.
commit bf33a77ea784cd21e7b1a283c98c2fa76dec1f43
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Fri Aug 5 05:29:58 2022 +0200
gnu: Parameterize libgccjit.
* gnu/packages/gcc.scm (make-libgccjit): New variable.
(libgccjit): Define in terms of make-libgccjit.
---
gnu/packages/gcc.scm | 38 +++++++++++++++++++++-----------------
1 file changed, 21 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 11ee631bf4..dd480e930d 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -968,31 +968,33 @@ as the 'native-search-paths' field."
(custom-gcc gcc-11 "gdc" '("d")
%generic-search-paths)))
-(define-public libgccjit
+(define-public (make-libgccjit gcc)
(package
- (inherit gcc-9)
+ (inherit gcc)
(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))
+ (substitute-keyword-arguments (package-arguments gcc)
+ ((#:modules _ '())
+ '((guix build gnu-build-system)
+ (guix build utils)
+ (ice-9 regex)
+ (srfi srfi-1)
+ (srfi srfi-26)))
((#:configure-flags flags)
- `(append `("--enable-host-shared"
- ,(string-append "--enable-languages=jit"))
+ #~(cons* "--enable-host-shared"
+ "--enable-languages=jit"
(remove (cut string-match "--enable-languages.*" <>)
- ,flags)))
+ #$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-.*)"))))))))
+ #~(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-.*)"))))))))
(synopsis "GCC library generating machine code on-the-fly at runtime")
(description
"This package is part of the GNU Compiler Collection and provides an
@@ -1003,6 +1005,8 @@ It can also be used for ahead-of-time code generation for
building standalone
compilers. The just-in-time (jit) part of the name is now something of a
misnomer.")))
+(define-public libgccjit (make-libgccjit gcc-9))
+
(define (make-gccgo gcc)
"Return a gccgo package based on GCC."
(let ((gccgo (custom-gcc gcc "gccgo" '("go") %generic-search-paths)))
- branch master updated (1da91705b0 -> d48c2c7df3), guix-commits, 2022/09/11
- 02/10: gnu: libgccjit: Build with bootstrapped gcc., guix-commits, 2022/09/11
- 04/10: gnu: emacs: Build with native compilation., guix-commits, 2022/09/11
- 01/10: gnu: Parameterize libgccjit.,
guix-commits <=
- 09/10: gnu: emacs-org: Undelete build step., guix-commits, 2022/09/11
- 05/10: guix: emacs-utils: Add emacs-compile-directory., guix-commits, 2022/09/11
- 07/10: gnu: emacs-yasnippet: Fix build., guix-commits, 2022/09/11
- 10/10: news: Add entry about Emacs native compilation., guix-commits, 2022/09/11
- 08/10: build-system: emacs: Use new function for autoloads generation, guix-commits, 2022/09/11
- 03/10: gnu: libgccjit: Build multiple versions., guix-commits, 2022/09/11
- 06/10: build-system: emacs: Use native compilation., guix-commits, 2022/09/11