mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Add lto scons option, defaulting to "none".
This commit is contained in:
@@ -120,4 +120,9 @@ def generate(env):
|
||||
|
||||
env.Append(CPPDEFINES=["ANDROID_ENABLED", "UNIX_ENABLED"])
|
||||
|
||||
# Refer to https://github.com/godotengine/godot/blob/master/platform/android/detect.py
|
||||
# LTO benefits for Android (size, performance) haven't been clearly established yet.
|
||||
if env["lto"] == "auto":
|
||||
env["lto"] = "none"
|
||||
|
||||
common_compiler_flags.generate(env)
|
||||
|
||||
Reference in New Issue
Block a user