Name the other program that holds totk.exe when the setup cannot link it

When ld.lld cannot write the totk.exe it links in the setup's temp build folder (Permission denied), the setup
showed only "Compiling totk.exe failed". In #1122 the holder was an antivirus that flagged the new exe, not a
running game. The compile step now recognises that failure in the build log and says what to do: close the game,
exclude the setup's and the install folder from the antivirus, restart Windows and run the setup again. Texts in
en, ru, pt-BR and zh-Hans; build_game.py's own line names the antivirus too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
itaskaev2andClaude Opus 5.5 committed 2026-11-12 11:17:51 +01:00
1 parent b6c5d37fb7
commit f854d67e6f
7 files changed
+70 -1

No files matched your search

+2 -1
View File
@@ -982,7 +982,8 @@ def main():
code, dt, peak_one, _ = run_measured(base + [flag_path(exe)], env)
print(f'link: {dt:.1f} s, peak {mib(peak_one)}')
if code:
print(f'build_game: link failed, {flag_path(exe)} is the old one (a running totk.exe from this dir locks it)',
print(f'build_game: link failed, {flag_path(exe)} is the old one (a running totk.exe from this dir, or an '
f'antivirus that holds the file, locks it)',
file=sys.stderr)
sys.exit(code)
if args.make_runtime_lib: