From d70175321c4f01a799b2dc506bbcec122edd6197 Mon Sep 17 00:00:00 2001 From: Artur Sharafutdinov Date: Wed, 5 Mar 2025 08:17:08 +0100 Subject: [PATCH] emrun: Add missing library function inclusion --- tools/link.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/link.py b/tools/link.py index 9440e8908a858..2e82c0cf459da 100644 --- a/tools/link.py +++ b/tools/link.py @@ -674,6 +674,8 @@ def phase_linker_setup(options, linker_args): # noqa: C901, PLR0912, PLR0915 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'] if options.cpu_profiler: options.post_js.append(utils.path_from_root('src/cpuprofiler.js'))