summaryrefslogtreecommitdiff
path: root/platform/web
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-20 09:45:33 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-20 09:45:33 +0200
commitaa553f403099a31520ab0c75a43f352642170d5f (patch)
treebdc0939e0877c56efa73473e43d262ed96e6cea9 /platform/web
parent7da532275bdddce4bfcb871bd6ded8fe2163b341 (diff)
parent35a15e619161798820b2bd6ff46178c5b7ccebcf (diff)
Merge pull request #65745 from akien-mga/scons-production-lto-earlier
Refactor handling of `production` flag and per-platform LTO defaults
Diffstat (limited to 'platform/web')
-rw-r--r--platform/web/detect.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/web/detect.py b/platform/web/detect.py
index 08f964db92..9cce73efc4 100644
--- a/platform/web/detect.py
+++ b/platform/web/detect.py
@@ -109,6 +109,10 @@ def configure(env):
env["ENV"] = os.environ
# LTO
+
+ if env["lto"] == "auto": # Full LTO for production.
+ env["lto"] = "full"
+
if env["lto"] != "none":
if env["lto"] == "thin":
env.Append(CCFLAGS=["-flto=thin"])