mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 01:43:36 +00:00
Emit asm.js code into a dedicated file for asm.js export
This helps prevent browser lockups during start-up at the cost of having to distribute an extra file.
This commit is contained in:
parent
d5c6806e16
commit
290d79f26c
2 changed files with 6 additions and 0 deletions
|
@ -96,6 +96,7 @@ def configure(env):
|
|||
else:
|
||||
env.Append(CPPFLAGS=['-s', 'ASM_JS=1'])
|
||||
env.Append(LINKFLAGS=['-s', 'ASM_JS=1'])
|
||||
env.Append(LINKFLAGS=['--separate-asm'])
|
||||
|
||||
if env['javascript_eval'] == 'yes':
|
||||
env.Append(CPPFLAGS=['-DJAVASCRIPT_EVAL_ENABLED'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue