diff options
Diffstat (limited to 'tools/web.py')
-rw-r--r-- | tools/web.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/web.py b/tools/web.py index e878a78..f1a4418 100644 --- a/tools/web.py +++ b/tools/web.py @@ -52,4 +52,8 @@ def generate(env): env.Append(CPPDEFINES=["WEB_ENABLED", "UNIX_ENABLED"]) + # Refer to https://github.com/godotengine/godot/blob/master/platform/web/detect.py + if env["lto"] == "auto": + env["lto"] = "full" + common_compiler_flags.generate(env) |