Преглед изворни кода

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

mellondill пре 6 година
родитељ
комит
3c176827d6
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      platform/javascript/detect.py

+ 3 - 0
platform/javascript/detect.py

@@ -141,3 +141,6 @@ def configure(env):
 
 
     # TODO: Reevaluate usage of this setting now that engine.js manages engine runtime.
     # TODO: Reevaluate usage of this setting now that engine.js manages engine runtime.
     env.Append(LINKFLAGS=['-s', 'NO_EXIT_RUNTIME=1'])
     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"]'])