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/macos.py | |
parent | 57bd88ad992da929f224f03c3dee3103bc41ee5d (diff) | |
download | redot-cpp-5f7cf050433fb04c9d1e1a01176998fc38784142.tar.gz |
Add lto scons option, defaulting to "none".
Diffstat (limited to 'tools/macos.py')
-rw-r--r-- | tools/macos.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/macos.py b/tools/macos.py index 7418150..f88e47f 100644 --- a/tools/macos.py +++ b/tools/macos.py @@ -73,4 +73,9 @@ def generate(env): env.Append(CPPDEFINES=["MACOS_ENABLED", "UNIX_ENABLED"]) + # Refer to https://github.com/godotengine/godot/blob/master/platform/macos/detect.py + # LTO benefits for macOS (size, performance) haven't been clearly established yet. + if env["lto"] == "auto": + env["lto"] = "none" + common_compiler_flags.generate(env) |