diff options
author | Lukas Tenbrink <lukas.tenbrink@gmail.com> | 2024-09-21 12:52:50 +0200 |
---|---|---|
committer | Lukas Tenbrink <lukas.tenbrink@gmail.com> | 2024-11-12 12:45:35 +0100 |
commit | 5f7cf050433fb04c9d1e1a01176998fc38784142 (patch) | |
tree | 0efd233779272cd8f9ccc1c6ef5b2a53e3c1e645 /tools/web.py | |
parent | 57bd88ad992da929f224f03c3dee3103bc41ee5d (diff) | |
download | redot-cpp-5f7cf050433fb04c9d1e1a01176998fc38784142.tar.gz |
Add lto scons option, defaulting to "none".
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 c8f07c5..c491880 100644 --- a/tools/web.py +++ b/tools/web.py @@ -48,4 +48,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) |