summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/gcc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index a871f62e5..40d3b8a4e 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -76,13 +76,13 @@ function init(self)
end
-- make the strip flag
-function nf_strip(self, level)
+function nf_strip(self, level, target)
local maps =
{
debug = "-Wl,-S"
, all = "-s"
}
- if is_plat("macosx") or is_plat("iphoneos") then
+ if target:is_plat("macosx") or target:is_plat("iphoneos") then
maps.all = "-Wl,-x"
end
return maps[level]