From ce920b6ff47f32bc06dd27124e1b882f82f3d6ae Mon Sep 17 00:00:00 2001 From: zinc Date: Wed, 14 Oct 2026 10:05:40 +0000 Subject: split compiler.zc into files by phase src/compiler/compiler.zc is now twelve files under src/compiler/, listed in order in src/compiler/parts. cat of the parts in order is byte-identical to the old file, so every compiler and image except the language server's is unchanged. no function was edited. consumers read the list: the makefile, bootstrap-check, genmap (which still writes one compiler.zc into a generated map directory), tinyvm.bat, test.sh, test_win.ps1 and the lsp drivers. the language server embeds each part and serves them joined as the one document tinyvm:/compiler.zc. --- src/tools/bootstrap-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/bootstrap-check.sh') diff --git a/src/tools/bootstrap-check.sh b/src/tools/bootstrap-check.sh index 7acd74c..8d5c327 100755 --- a/src/tools/bootstrap-check.sh +++ b/src/tools/bootstrap-check.sh @@ -11,7 +11,7 @@ esac cd "$(dirname "$0")/../.." make -s build/bin/zc0 build/bin/mkgenome CC=${CC:-$(sh src/tools/findcc.sh)} -SRC="src/runtime/rt.zc src/core/core.zc src/compiler/compiler.zc" +SRC="src/runtime/rt.zc src/core/core.zc $(tr -d '\r' < src/compiler/parts | sed 's|^|src/compiler/|')" mkdir -p build/s0 build/s1 cat $SRC | build/bin/zc0 > build/s0/g0.bin build/bin/mkgenome < build/s0/g0.bin > build/s0/genome.bin -- cgit v1.2.3