diff options
| author | ruki <[email protected]> | 2022-12-24 00:47:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-24 00:47:59 +0800 |
| commit | dce21d90128092eff1a8884191972dff239ff65b (patch) | |
| tree | 6baf47869aeb98e1d97105300d82b1c3d630b40c | |
| parent | 26054f728da7212b0c1e0b9d3243b41bfa4f31b4 (diff) | |
add lto
| -rwxr-xr-x | core/xmake.sh | 5 |
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 |
