diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index c7acbde3f7d..12ac7c3a5bd 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -135,3 +135,6 @@ def configure(env): # TODO: Reevaluate usage of this setting now that engine.js manages engine runtime. 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"]'])