diff options
author | George L. Albany <Megacake1234@gmail.com> | 2024-11-13 03:25:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 03:25:37 +0000 |
commit | a089d372e877febb71e4b5365e567275c301e750 (patch) | |
tree | 98d7630d8587d265c655a53490c58a7831c3fff8 /tools/linux.py | |
parent | 8ca6bc2cfb90178d10c2a4a7c502242213bfa645 (diff) | |
parent | 2a18d3da32c47f8ac1eea7c05fe3bc9ba2affc82 (diff) | |
download | redot-cpp-a089d372e877febb71e4b5365e567275c301e750.tar.gz |
Merge commit godotengine/godot-cpp@c20a84e
Diffstat (limited to 'tools/linux.py')
-rw-r--r-- | tools/linux.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/linux.py b/tools/linux.py index 0b26878..9e85d88 100644 --- a/tools/linux.py +++ b/tools/linux.py @@ -39,4 +39,8 @@ def generate(env): env.Append(CPPDEFINES=["LINUX_ENABLED", "UNIX_ENABLED"]) + # Refer to https://github.com/godotengine/godot/blob/master/platform/linuxbsd/detect.py + if env["lto"] == "auto": + env["lto"] = "full" + common_compiler_flags.generate(env) |