mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-06 06:10:06 +03:00
Add lto scons option, defaulting to "none".
(cherry picked from commit 5f7cf05043)
This commit is contained in:
committed by
David Snopek
parent
d5bdde9509
commit
06fbf3ce95
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user