diff options
| author | ruki <[email protected]> | 2023-02-05 21:48:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-05 21:48:49 +0800 |
| commit | e2007947b3dc7b19e6f073335dbbe6abd84eb821 (patch) | |
| tree | 0fe40673580c19424e656ba757a77e94d36ed253 | |
| parent | 0847395c81ebaad0ba239b112cb3595ea731e9bb (diff) | |
fix macOS M1 #3296
| -rwxr-xr-x | core/xmake.sh | 3 |
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" |
