diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-11-12 15:34:50 -0500 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-11-12 15:34:50 -0500 |
commit | 2a18d3da32c47f8ac1eea7c05fe3bc9ba2affc82 (patch) | |
tree | 98d7630d8587d265c655a53490c58a7831c3fff8 /tools/android.py | |
parent | 8ca6bc2cfb90178d10c2a4a7c502242213bfa645 (diff) | |
parent | c20a84e483ec61c77e5903cb4a139f6875e28a3b (diff) | |
download | redot-cpp-2a18d3da32c47f8ac1eea7c05fe3bc9ba2affc82.tar.gz |
Merge commit godotengine/godot-cpp@c20a84e483ec61c77e5903cb4a139f6875e28a3b
Diffstat (limited to 'tools/android.py')
-rw-r--r-- | tools/android.py | 5 |
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) |