From cc4572b244b3615ff49aab0b1c4dcf5f9b3ca9eb Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 31 Oct 2026 09:57:49 +0800 Subject: [PATCH] Build the runtime library without the generated chunk lists --make-runtime-lib compiles runtime/ alone, so it must not insist on a chunk manifest that only a lift writes: the library is rebuilt by itself when the runtime sources change. --- tools/build_game.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build_game.py b/tools/build_game.py index ef55110c..608c01db 100644 --- a/tools/build_game.py +++ b/tools/build_game.py @@ -821,7 +821,8 @@ def main(): if unknown: sys.exit(f'unknown modules {unknown}; the layout has {names}') linked = [m for m in names if m in wanted] - mods = {m: chunk_files(gen, m) for m in linked} + # --make-runtime-lib builds runtime/ only, so it never reads the generated chunks + mods = {} if args.make_runtime_lib else {m: chunk_files(gen, m) for m in linked} cpus = os.cpu_count() or 1 budget = min(MEM_BUDGET, int(total_ram() * 0.8))