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/ios.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/ios.py') diff --git a/tools/ios.py b/tools/ios.py index 9675ab1..25c17db 100644 --- a/tools/ios.py +++ b/tools/ios.py @@ -97,4 +97,9 @@ def generate(env): env.Append(CPPDEFINES=["IOS_ENABLED", "UNIX_ENABLED"]) + # Refer to https://github.com/godotengine/godot/blob/master/platform/ios/detect.py: + # Disable by default as it makes linking in Xcode very slow. + if env["lto"] == "auto": + env["lto"] = "none" + common_compiler_flags.generate(env) -- cgit v1.2.3