summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-29 23:43:11 +0100
committerGitHub <noreply@github.com>2018-10-29 23:43:11 +0100
commit39a5678c389d737ff6546e017b19367baa9a99c0 (patch)
tree83d63770a23fd13178c6abfaa4e8bb31600adc40
parent4fb35520fbbcc0bb2f9a3549ee4b69e60dd5dda0 (diff)
parent44e5d446c4e37bcf2e04ca02ce6c0178930a6aff (diff)
Merge pull request #23387 from eska014/memgrowth-preload
Enable --no-heap-copy flag for HTML5 builds
-rw-r--r--platform/javascript/detect.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index 17b31f8d73..cf85c3df7f 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -128,6 +128,10 @@ def configure(env):
# us since we don't know requirements at compile-time.
env.Append(LINKFLAGS=['-s', 'ALLOW_MEMORY_GROWTH=1'])
+ # Since we use both memory growth and MEMFS preloading,
+ # this avoids unecessary copying on start-up.
+ env.Append(LINKFLAGS=['--no-heap-copy'])
+
# This setting just makes WebGL 2 APIs available, it does NOT disable WebGL 1.
env.Append(LINKFLAGS=['-s', 'USE_WEBGL2=1'])