summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-11 22:34:50 +0800
committerruki <[email protected]>2023-09-11 22:34:50 +0800
commitdb6354e9644c4c125b653f802ad121bb7d24d51e (patch)
treebcba57a85bebf6b0cb7a7ea781c2d059ac35883a
parent7298851075ef05ff34849934ecd113e6a6cfd33a (diff)
disable lto for mac #4181
-rwxr-xr-xcore/xmake.sh6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/xmake.sh b/core/xmake.sh
index df3fbecb5..2c42a8891 100755
--- a/core/xmake.sh
+++ b/core/xmake.sh
@@ -27,12 +27,6 @@ else
set_symbols "hidden"
fi
set_optimizes "smallest"
- # we cannot enable LTO on macOS arm64
- if is_plat "macosx" && ! is_arch "arm64"; then
- add_cxflags "-flto"
- add_mxflags "-flto"
- add_ldflags "-flto"
- fi
fi
# the runtime option, lua or luajit