aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-24 11:45:44 +0900
committerOphestra <cat@gensokyo.uk>2026-01-24 11:45:44 +0900
commitacee0b36328883c4d66192c181652af9d82b7bf4 (patch)
tree7b305c79cbe020b2c87bcd936c56981038fa1c2d /internal/pkg
parent5e55a796df5a85f163b46ef8b9d8b8540304a841 (diff)
internal/pkg: increase output buffer size
This avoids truncating unreasonably long lines from llvm. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg')
-rw-r--r--internal/pkg/exec.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go
index f8913174..a80124ab 100644
--- a/internal/pkg/exec.go
+++ b/internal/pkg/exec.go
@@ -259,6 +259,10 @@ func scanVerbose(
) {
defer close(done)
s := bufio.NewScanner(r)
+ s.Buffer(
+ make([]byte, bufio.MaxScanTokenSize),
+ bufio.MaxScanTokenSize<<12,
+ )
for s.Scan() {
msg.Verbose(prefix, s.Text())
}