Let Rebuild the Game compile the game's code for this processor's level, and updates keep the compiled level.

make_game.py --rebuild keeps the level the objects were compiled for (lifted_level), so an update compiles only what
changed; --retune compiles for this processor's level. RebuildJob passes it, ContinueUpdateJob does not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-09 10:27:17 -05:00
parent cd20bdf09f
commit fa1a2250b5
3 changed files with 18 additions and 3 deletions

View File

@@ -36,8 +36,10 @@ def install_args(layout, dump, game_dir):
return [*src, '--out', str(game_dir), '--msys', str(layout.msys)]
def rebuild_args(layout, game_dir):
return ['--rebuild', '--out', str(game_dir), '--msys', str(layout.msys)]
def rebuild_args(layout, game_dir, retune=False):
"""retune: Rebuild the Game, which compiles the game's code for this processor's level; an update keeps the level
its objects were compiled for, so that it compiles only what changed (tools/make_game.py lifted_level)."""
return ['--rebuild', *(['--retune'] if retune else []), '--out', str(game_dir), '--msys', str(layout.msys)]
def check_args(dump):