1
0
Fork 0

Merge pull request #96785 from akien-mga/scons-lto-use-thinlto-llvm

SCons: Make `lto=auto` prefer ThinLTO over full LTO for LLVM targets
This commit is contained in:
Rémi Verschelde 2025-01-09 13:50:39 +01:00
commit fcc9e3a711
3 changed files with 6 additions and 6 deletions

View File

@ -184,8 +184,8 @@ def configure(env: "SConsEnvironment"):
# LTO
if env["lto"] == "auto": # Full LTO for production.
env["lto"] = "full"
if env["lto"] == "auto": # Enable LTO for production.
env["lto"] = "thin" if env["use_llvm"] else "full"
if env["lto"] != "none":
if env["lto"] == "thin":

View File

@ -117,8 +117,8 @@ def configure(env: "SConsEnvironment"):
# LTO
if env["lto"] == "auto": # Full LTO for production.
env["lto"] = "full"
if env["lto"] == "auto": # Enable LTO for production.
env["lto"] = "thin"
if env["lto"] != "none":
if env["lto"] == "thin":

View File

@ -762,8 +762,8 @@ def configure_mingw(env: "SConsEnvironment"):
## LTO
if env["lto"] == "auto": # Full LTO for production with MinGW.
env["lto"] = "full"
if env["lto"] == "auto": # Enable LTO for production with MinGW.
env["lto"] = "thin" if env["use_llvm"] else "full"
if env["lto"] != "none":
if env["lto"] == "thin":