Merge pull request #354: Build the runtime library without the generated chunk lists (shenjackyuanjie)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-01 17:51:02 +03:00
commit 3e3d4ef42d
1 file changed
+2 -1
+2 -1
View File
@@ -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))