1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

compile-as-derivation: Buffer the current-error-port.

To avoid one character per syscall output from within the build procedure.

* build-aux/compile-as-derivation.scm: Buffer the current-error-port.

Change-Id: I7725ef0cb1f3ad4e9f5fdd284734f376fd57b253
This commit is contained in:
Christopher Baines
2026-03-02 12:28:45 +00:00
parent ba35edb100
commit c56f19efc6

View File

@@ -41,6 +41,10 @@
(match (command-line)
((program source)
;; The build procedure outputs to this port, so setup buffering to avoid
;; one char per syscall.
(setvbuf (current-error-port) 'line)
(with-error-handling
(with-store store
(let* ((script (string-append source "/build-aux/build-self.scm"))