mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-19 04:15:57 +00:00
build_game.py used to reuse build/<ver>'s generated objects only as a whole and only for generated/<ver>, so a private lift of a patch change (gen.py --out generated/<ver>-prN, build_game.py --gen) compiled all 421 chunks, about 5 min on 12 jobs, for one changed chunk. main_objects now decides per object: same compiler, flags and rule in the main build.ninja (with the main runtime/ and generated dir in place of ours), main build up to date, and every file the main compile read according to its Ninja deps log byte-identical on our side and unchanged since the object was written (NTFS ChangeTime, st_ctime elsewhere), the compiler binaries too. A file new on our side whose name those compiles included or probed blocks the reuse. Anything unknown compiles. The build prints "reused N of M generated objects", --verbose lists the rest with the reason; obj/reused.txt lets a later build delete a copied object before compiling it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>