summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorLeon Krause <lk@leonkrause.com>2018-10-29 21:05:23 +0100
committerLeon Krause <lk@leonkrause.com>2018-10-29 21:08:51 +0100
commit44e5d446c4e37bcf2e04ca02ce6c0178930a6aff (patch)
tree29e4eb44418ddcb810b8d20024cf377680f4855e /platform/javascript
parent0a80ceaf02b258c548e500297079a350d8567023 (diff)
Enable --no-heap-copy flag for HTML5 builds
Diffstat (limited to 'platform/javascript')
-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'])