diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 23d947a96b3..e8f2995964a 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -120,6 +120,9 @@ def configure(env): env.Append(LINKFLAGS=['-s', 'INVOKE_RUN=0']) env.Append(LINKFLAGS=['-s', 'NO_EXIT_RUNTIME=1']) + #adding flag due to issue with emscripten 1.38.41 callMain method https://github.com/emscripten-core/emscripten/blob/incoming/ChangeLog.md#v13841-08072019 + env.Append(LINKFLAGS=['-s', 'EXTRA_EXPORTED_RUNTIME_METHODS=["callMain"]']) + # TODO: Move that to opus module's config if 'module_opus_enabled' in env and env['module_opus_enabled']: env.opus_fixed_point = "yes"