From 7b94b9003daa1126ce78df37481fc52774c2f0b4 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 21 Oct 2026 11:08:50 +0000 Subject: feat(bundle): run the bundled compiler with input and streaming output Save before running, close prefilled stdin at EOF, and stream output bytes through Tauri channels. Stop and reap the child before exit or another run. Disable embedded stdout buffering and exercise the runner with real programs. Co-Authored-By: Claude Opus 5.5 --- AGENTS/ARCH.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'AGENTS') diff --git a/AGENTS/ARCH.md b/AGENTS/ARCH.md index e6361a9..84d94ed 100644 --- a/AGENTS/ARCH.md +++ b/AGENTS/ARCH.md @@ -163,6 +163,8 @@ Driver behavior (`tools/driver/main.cc`): - Both execution modes return the program's exit status and inherit standard streams. `-r -o` saves a binary; adding `-S` saves IR instead. Saved output is kept on execution failure. Execution still uses the configured runner. + EMBEDDED disables stdout buffering before JIT initialization so pipe clients + receive output during execution, including on Windows's shared host CRT. All modes require static LLVM, Clang Driver and LLD archives. `cmake/EmbeddedLLVM.cmake` also selects static compression/terminal support archives when LLVM uses them. Linux Clang -- cgit v1.3.1-4-g156e