summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-13 17:02:22 +0200
committerGitHub <noreply@github.com>2021-07-13 17:02:22 +0200
commit681b1bb306121c859e8f60a4ff0888b3c0e5f922 (patch)
treed8750d8687f17c6e66449d3f44917b2f95fcf8ed
parenta4af76077ae23726e3428547a1e4d4c6aa82f760 (diff)
parent897c906ebfd1736b27dd8aadd19c18da8a38dee2 (diff)
Merge pull request #50422 from Faless/js/4.x_memory_initial_32
[HTML5] Raise default initial memory to 32 MiB.
-rw-r--r--platform/javascript/detect.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index da6adc4cd8..dacc442575 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -29,7 +29,7 @@ def get_opts():
from SCons.Variables import BoolVariable
return [
- ("initial_memory", "Initial WASM memory (in MiB)", 16),
+ ("initial_memory", "Initial WASM memory (in MiB)", 32),
BoolVariable("use_assertions", "Use Emscripten runtime assertions", False),
BoolVariable("use_thinlto", "Use ThinLTO", False),
BoolVariable("use_ubsan", "Use Emscripten undefined behavior sanitizer (UBSAN)", False),
@@ -130,7 +130,6 @@ def configure(env):
env.Append(CCFLAGS=["-fsanitize=leak"])
env.Append(LINKFLAGS=["-fsanitize=leak"])
if env["use_safe_heap"]:
- env.Append(CCFLAGS=["-s", "SAFE_HEAP=1"])
env.Append(LINKFLAGS=["-s", "SAFE_HEAP=1"])
# Closure compiler