aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--xmake.lua6
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 172ab96ab..80bec842a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,6 @@
##
+- Improvement: Build release binaries with LTO on Windows/Mac
+- Improvement: Release binaries now build with "faster" instead of "smaller" optimization flags
## 5.5.15
- Bugfix: Fix returned content type when requesting a project store chunk with non-compressed accept type
diff --git a/xmake.lua b/xmake.lua
index fc896d3e8..c49a71901 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -51,7 +51,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