From 3078f723a8708681e856597e8149d8d00cf44821 Mon Sep 17 00:00:00 2001 From: mellondill Date: Mon, 12 Aug 2019 21:59:27 +0300 Subject: [PATCH] https://github.com/godotengine/godot/issues/31297 - HTML5: this.rtenv.callMain is not a function when using latest-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later (cherry picked from commit 3c176827d6f67ae09ba4406507a0a927e3d51dee) --- platform/javascript/detect.py | 3 +++ 1 file changed, 3 insertions(+) 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"]'])