From c56f19efc66c8970e23c4cc4778fe6fcd2574994 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 2 Mar 2026 12:28:45 +0000 Subject: [PATCH] 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 --- build-aux/compile-as-derivation.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-aux/compile-as-derivation.scm b/build-aux/compile-as-derivation.scm index d945a8c79c..9da13893b5 100644 --- a/build-aux/compile-as-derivation.scm +++ b/build-aux/compile-as-derivation.scm @@ -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"))