mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 08:32:54 +00:00
Only emit the JavaScript support code for Web when building for HTML5
Excluding other unused environments like Node.js makes the support code
about 4 KB smaller.
(cherry picked from commit e818b51f32
)
This commit is contained in:
parent
98b4ef274b
commit
611cc11536
@ -131,6 +131,11 @@ def configure(env):
|
||||
|
||||
env.Append(LINKFLAGS=['-s', 'BINARYEN=1'])
|
||||
|
||||
# Only include the JavaScript support code for the web environment
|
||||
# (i.e. exclude Node.js and other unused environments).
|
||||
# This makes the JavaScript support code about 4 KB smaller.
|
||||
env.Append(LINKFLAGS=['-s', 'ENVIRONMENT=web'])
|
||||
|
||||
# This needs to be defined for Emscripten using 'fastcomp' (default pre-1.39.0)
|
||||
# and undefined if using 'upstream'. And to make things simple, earlier
|
||||
# Emscripten versions didn't include 'fastcomp' in their path, so we check
|
||||
|
Loading…
Reference in New Issue
Block a user