From c97e482293c955dbf89e0a09bb149a6dd14f6eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Fri, 15 Aug 2025 18:53:23 +0300 Subject: [PATCH] Fix emrun with EXIT_RUNTIME=0 --- tools/link.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/link.py b/tools/link.py index 87f55a5077a1f..8615af273a611 100644 --- a/tools/link.py +++ b/tools/link.py @@ -734,9 +734,6 @@ def phase_linker_setup(options, linker_args): # noqa: C901, PLR0912, PLR0915 options.post_js.append(utils.path_from_root('src/emrun_postjs.js')) if settings.MINIMAL_RUNTIME: exit_with_error('--emrun is not compatible with MINIMAL_RUNTIME') - # emrun mode waits on program exit - if user_settings.get('EXIT_RUNTIME') == '0': - exit_with_error('--emrun is not compatible with EXIT_RUNTIME=0') settings.EXIT_RUNTIME = 1 # emrun_postjs.js needs this library function. settings.DEFAULT_LIBRARY_FUNCS_TO_INCLUDE += ['$addOnExit']