summaryrefslogtreecommitdiffstats
path: root/tools/android.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/android.py')
-rw-r--r--tools/android.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/android.py b/tools/android.py
index 0222121..fee4ed2 100644
--- a/tools/android.py
+++ b/tools/android.py
@@ -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)