summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-04-25 22:33:54 +0800
committerruki <[email protected]>2023-04-25 22:33:54 +0800
commitcba6838a760e25a8c372ce5e547cd6691eb9ef61 (patch)
tree834ed3e4819e3c8845a7b24e9381a8172df26ffe
parent474f7a8040615c0e71bcafcc7ff422e6e72fc631 (diff)
fix strip for arm64
-rw-r--r--xmake/modules/core/tools/link.lua6
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