summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/xmake.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/xmake.sh b/core/xmake.sh
index ea5043551..8e212b77b 100755
--- a/core/xmake.sh
+++ b/core/xmake.sh
@@ -25,6 +25,11 @@ else
set_strip "all"
set_symbols "hidden"
set_optimizes "smallest"
+ if is_plat "macosx"; then
+ add_cxflags "-flto"
+ add_mxflags "-flto"
+ add_ldflags "-flto"
+ fi
fi
# the runtime option, lua or luajit