summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/xmake.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/xmake.sh b/core/xmake.sh
index c165ac030..72113d421 100755
--- a/core/xmake.sh
+++ b/core/xmake.sh
@@ -25,7 +25,8 @@ else
set_strip "all"
set_symbols "hidden"
set_optimizes "smallest"
- if is_plat "macosx"; then
+ # we cannot enable LTO on macOS arm64
+ if is_plat "macosx" && ! is_arch "arm64"; then
add_cxflags "-flto"
add_mxflags "-flto"
add_ldflags "-flto"