build: Explicitly flush the "LOAD" and "GUILEC" lines.
authorLudovic Courtès <ludo@gnu.org>
Tue, 28 Nov 2017 12:40:04 +0000 (13:40 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 28 Nov 2017 12:40:04 +0000 (13:40 +0100)
* build-aux/compile-all.scm <top level>: Add calls to 'force-output'
in the #:report-load and #:report-compilation procedures.  Fixes a
regression introduced in 2890ad332fcdfd4bc92b127d783975437c8b718b
whereby compilation output would be buffered, leading to a weird
visual effect.

build-aux/compile-all.scm

index c7ca5a6..d2afbda 100644 (file)
@@ -92,8 +92,10 @@ to 'make'."
                   #:host host
                   #:report-load (lambda (file total completed)
                                   (when file
-                                    (format #t "  LOAD     ~a~%" file)))
+                                    (format #t "  LOAD     ~a~%" file)
+                                    (force-output)))
                   #:report-compilation (lambda (file total completed)
                                          (when file
                                            (format #t "  GUILEC   ~a~%"
-                                                   (scm->go file)))))))
+                                                   (scm->go file))
+                                           (force-output))))))