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

@@ -316,6 +316,7 @@ class InstallJob(Job):
class RebuildJob(Job):
kind = 'rebuild'
title = 'Rebuilding'
retune = True # Rebuild the Game: the game's code for this processor's level (build.rebuild_args)
def __init__(self, ctx, game_dir, dump=''):
super().__init__(ctx, ['tools_update', 'lift', 'compile_changed', 'swap', 'shaders', *prompt_rows(ctx)])
@@ -327,7 +328,7 @@ class RebuildJob(Job):
if build.game_running(self.game_dir):
raise build.BuildError('the game is running: close it and try again')
if build.can_rebuild(self.game_dir):
args = build.rebuild_args(layout, self.game_dir)
args = build.rebuild_args(layout, self.game_dir, self.retune)
elif self.dump:
args = build.install_args(layout, self.dump, self.game_dir)
else:
@@ -372,6 +373,7 @@ class UpdateDownloadJob(Job):
class ContinueUpdateJob(RebuildJob):
"""After the restart, in the new version: bring the tools to its lock and rebuild the game."""
retune = False # an update keeps the compiled game's level, so it compiles only what changed
kind = 'update'
def __init__(self, ctx, game_dir, old, dump=''):