mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
SCons: Refactor handling of production flag and per-platform LTO defaults
Fixup to #63288.
See #65583 for the bug report.
Co-authored-by: Cyberrebell <chainsaw75@web.de>
(cherry picked from commit 35a15e6191)
This commit is contained in:
@@ -100,6 +100,10 @@ def configure(env):
|
||||
env["ENV"] = os.environ
|
||||
|
||||
# LTO
|
||||
|
||||
if env["lto"] == "auto": # Full LTO for production.
|
||||
env["lto"] = "full"
|
||||
|
||||
if env["lto"] != "none":
|
||||
if env["lto"] == "thin":
|
||||
env.Append(CCFLAGS=["-flto=thin"])
|
||||
|
||||
Reference in New Issue
Block a user