aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorZousar Shaker <[email protected]>2024-12-06 21:47:11 -0700
committerZousar Shaker <[email protected]>2024-12-06 21:47:11 -0700
commit5688fa8f46fe3cd32f283adcc590e447174c58a8 (patch)
treedccaef1a87cf454639f45e330732221ce4eb1712 /xmake.lua
parentchangelog (diff)
parent5.5.16-pre0 (diff)
downloadzen-zs/xrepo.tar.xz
zen-zs/xrepo.zip
Merge branch 'main' into zs/xrepozs/xrepo
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index e703ad8ed..855322ced 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -65,7 +65,11 @@ add_rules("mode.debug", "mode.release")
--add_rules("c++.unity_build")
if is_mode("release") then
- set_optimize("smallest")
+ -- LTO does not appear to work with the current UE toolchain
+ if not is_plat("linux") then
+ set_policy("build.optimization.lto", true)
+ end
+ set_optimize("fastest")
end
if is_mode("debug") then