Ship every install-time runtime source in the Windows release

make_release.py copied a hand-written list of the sources build_game.py compiles at install time and missed
mouse_direct.c, so the 06005d4 installer failed to link with undefined input_direct_mouse_* symbols. It now copies
build_game.INSTALL_SIDE, and build_game.py --runtime-lib stops with the missing file names before the link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-04 12:12:52 +03:00
1 parent 06005d40d8
commit 38e2ae1b15
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -918,6 +918,11 @@ def main():
runtime_lib = args.runtime_lib.resolve() if args.runtime_lib else None
if runtime_lib and not runtime_lib.is_file():
sys.exit(f'{runtime_lib} not found: build it with --make-runtime-lib')
# The library leaves INSTALL_SIDE out, so a release that ships without one of them links with undefined symbols.
missing = sorted(n for n in INSTALL_SIDE - skip if not (RUNTIME / n).is_file())
if runtime_lib and missing:
sys.exit(f'build_game: {", ".join(missing)} missing from {flag_path(RUNTIME)}: the release must ship every '
f'INSTALL_SIDE source beside {runtime_lib.name}')
text, objs, exe = ninja_file(gen, out, mods, jobs, skip, pairs is not None, runtime_lib,
args.make_runtime_lib)
write_if_changed(out / 'build.ninja', text)