guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: guile@2.2: Build with '-fexcess-precision=standard' on i686.


From: guix-commits
Subject: 01/02: gnu: guile@2.2: Build with '-fexcess-precision=standard' on i686.
Date: Fri, 24 Sep 2021 12:04:26 -0400 (EDT)

civodul pushed a commit to branch core-updates-frozen
in repository guix.

commit 9b09a753a9711f7614564272013138fce6fec708
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 24 16:53:13 2021 +0200

    gnu: guile@2.2: Build with '-fexcess-precision=standard' on i686.
    
    * gnu/packages/guile.scm (guile-2.2)[arguments]: New field.
    (guile-3.0)[arguments]: Inherit arguments from GUILE-2.0 instead of 
GUILE-2.2
---
 gnu/packages/guile.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 9fa2237..5cb7ab2 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -270,6 +270,13 @@ without requiring the source code to be rewritten.")
                           (for-each delete-file
                                     (find-files "prebuilt" "\\.go$"))
                           #t))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments guile-2.0)
+       ((#:configure-flags flags ''())
+        (if (target-x86-32?)            ;<https://issues.guix.gnu.org/49368>
+            `(append ,flags '("CFLAGS=-g -O2 -fexcess-precision=standard"))
+            flags))))
+
     (properties '((timeout . 72000)               ;20 hours
                   (max-silent-time . 36000)))     ;10 hours (needed on ARM
                                                   ;  when heavily loaded)
@@ -324,7 +331,7 @@ without requiring the source code to be rewritten.")
                   (package-propagated-inputs guile-2.2)
                   '("gmp" "libltdl")))
     (arguments
-     (substitute-keyword-arguments (package-arguments guile-2.2)
+     (substitute-keyword-arguments (package-arguments guile-2.0)
        ((#:configure-flags flags ''())
         ;; XXX: JIT-enabled Guile crashes in obscure ways on GNU/Hurd.
         `(cons* ,@(if (hurd-target?)
@@ -334,6 +341,8 @@ without requiring the source code to be rewritten.")
                 ;; i686-linux, otherwise "numbers.test" will fail
                 ;; (see <https://issues.guix.gnu.org/49368> and
                 ;; <https://issues.guix.gnu.org/49659>).
+                ;; TODO: Keep this in GUILE-2.2 and remove from here on next
+                ;; rebuild cycle.
                 ,@(if (target-x86-32?)
                       '("CFLAGS=-g -O2 -fexcess-precision=standard")
                       '())



reply via email to

[Prev in Thread] Current Thread [Next in Thread]