diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-15 16:40:44 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-17 13:03:52 +0100 |
commit | 1446cfd13dae0e2e938466eddd325d45e1a032b5 (patch) | |
tree | e430993a18f534e817d254fb9d08749c431f018e /platform/javascript | |
parent | 0ae762a7013f7191296d79dbe9e38f5f1afe095f (diff) |
[HTML5] Fix compilation issues in 4.0
More memory is needed, and a Workaround to avoid undefined symbol due to
dead code elimination.
Diffstat (limited to 'platform/javascript')
-rw-r--r-- | platform/javascript/detect.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 06f88dc83f..4297088c09 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -92,9 +92,9 @@ def configure(env): if not env["threads_enabled"]: print("Threads must be enabled to build the editor. Please add the 'threads_enabled=yes' option") sys.exit(255) - if env["initial_memory"] < 32: - print("Editor build requires at least 32MiB of initial memory. Forcing it.") - env["initial_memory"] = 32 + if env["initial_memory"] < 64: + print("Editor build requires at least 64MiB of initial memory. Forcing it.") + env["initial_memory"] = 64 elif env["builtin_icu"]: env.Append(CCFLAGS=["-frtti"]) else: @@ -233,3 +233,11 @@ def configure(env): # Add code that allow exiting runtime. env.Append(LINKFLAGS=["-s", "EXIT_RUNTIME=1"]) + + # TODO remove once we have GLES support back (temporary fix undefined symbols due to dead code elimination). + env.Append( + LINKFLAGS=[ + "-s", + "EXPORTED_FUNCTIONS=['_main', '_emscripten_webgl_get_current_context', '_emscripten_webgl_commit_frame', '_emscripten_webgl_create_context']", + ] + ) |