diff options
| author | ruki <[email protected]> | 2023-04-25 22:33:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-04-25 22:33:54 +0800 |
| commit | cba6838a760e25a8c372ce5e547cd6691eb9ef61 (patch) | |
| tree | 834ed3e4819e3c8845a7b24e9381a8172df26ffe | |
| parent | 474f7a8040615c0e71bcafcc7ff422e6e72fc631 (diff) | |
fix strip for arm64
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index 38ce20a83..87ba80b88 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -59,6 +59,12 @@ end -- make the strip flag function nf_strip(self, level, target) + + -- link.exe/arm64 does not support /opt:ref, /opt:icf + if target and target:is_arch("arm64") then + return + end + -- @note we explicitly strip some useless code, because `/debug` may keep them -- @see https://github.com/xmake-io/xmake/issues/907 if level == "all" then |
