diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-17 13:31:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 13:31:21 +0100 |
commit | fa24c99a5c0454586313958a04375ab63ac7d544 (patch) | |
tree | 003c879bbe16340ea2fe308268596eea0e70fdd5 /platform/javascript/detect.py | |
parent | 99fc96e7b3d8540825e46ed16b97585c52c34f5d (diff) | |
parent | 26ec6ca576ec91fe3ae52bd647d7d1778ad4716c (diff) |
Merge pull request #46119 from Faless/js/4.x_processor_count
[HTML5] Implement OS.get_processor_count(), 4.0 fixes
Diffstat (limited to 'platform/javascript/detect.py')
-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']", + ] + ) |