Skip to content

Commit

Permalink
godotengine#31297 - HTML5: this.rtenv.callMain is not a function when…
Browse files Browse the repository at this point in the history
… using latest-upstream backend

Added needed changed for normal compiling with emscripten 1.38.41 and later
  • Loading branch information
mellondill authored and myhalibobo committed Sep 3, 2019
1 parent fb57862 commit 67c1b4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/javascript/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,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"]'])

0 comments on commit 67c1b4a

Please sign in to comment.