Merge pull request #23387 from eska014/memgrowth-preload

Enable --no-heap-copy flag for HTML5 builds
This commit is contained in:
Rémi Verschelde 2018-10-29 23:43:11 +01:00 committed by GitHub
commit 39a5678c38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'])