mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Enable --no-heap-copy flag for HTML5 builds
This commit is contained in:
parent
0a80ceaf02
commit
44e5d446c4
@ -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'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user