guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: ld-wrapper: Use _IOLBF on Guile 2.0 only.


From: guix-commits
Subject: 01/02: gnu: ld-wrapper: Use _IOLBF on Guile 2.0 only.
Date: Mon, 16 Mar 2020 10:45:42 -0400 (EDT)

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

commit d8f78f54489eae44ffbee3f2af7bbc130e8c0c72
Author: Ludovic Court├Ęs <address@hidden>
AuthorDate: Mon Mar 16 15:31:58 2020 +0100

    gnu: ld-wrapper: Use _IOLBF on Guile 2.0 only.
    
    * gnu/packages/base.scm (make-ld-wrapper)[arguments]: Wrap use of
    '_IOLBF' in 'cond-expand' and use 'line instead on Guile > 2.0.
---
 gnu/packages/base.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index d74d304..196106f 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -546,7 +546,9 @@ wrapper for the cross-linker for that target, called 
'TARGET-ld'."
                                       '(string-append bin "/ld")))
                             (go  (string-append ld ".go")))
 
-                       (setvbuf (current-output-port) _IOLBF)
+                       (setvbuf (current-output-port)
+                                (cond-expand (guile-2.0 _IOLBF)
+                                             (else 'line)))
                        (format #t "building ~s/bin/ld wrapper in ~s~%"
                                (assoc-ref %build-inputs "binutils")
                                out)



reply via email to

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