internal/pkg: increase output buffer size

This avoids truncating unreasonably long lines from llvm.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-24 11:45:44 +09:00
parent 5e55a796df
commit acee0b3632

View File

@@ -259,6 +259,10 @@ func scanVerbose(
) { ) {
defer close(done) defer close(done)
s := bufio.NewScanner(r) s := bufio.NewScanner(r)
s.Buffer(
make([]byte, bufio.MaxScanTokenSize),
bufio.MaxScanTokenSize<<12,
)
for s.Scan() { for s.Scan() {
msg.Verbose(prefix, s.Text()) msg.Verbose(prefix, s.Text())
} }