From 5f7cf050433fb04c9d1e1a01176998fc38784142 Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Sat, 21 Sep 2024 12:52:50 +0200 Subject: Add lto scons option, defaulting to "none". --- tools/linux.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/linux.py') diff --git a/tools/linux.py b/tools/linux.py index 0b26878..9e85d88 100644 --- a/tools/linux.py +++ b/tools/linux.py @@ -39,4 +39,8 @@ def generate(env): env.Append(CPPDEFINES=["LINUX_ENABLED", "UNIX_ENABLED"]) + # Refer to https://github.com/godotengine/godot/blob/master/platform/linuxbsd/detect.py + if env["lto"] == "auto": + env["lto"] = "full" + common_compiler_flags.generate(env) -- cgit v1.2.3