summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-13 23:35:07 +0800
committerruki <[email protected]>2023-10-13 23:35:07 +0800
commita0bb01624626ec060da172aa13ec41428dd1761b (patch)
tree925d9dbea87edf2962af16509b63aac25be5123d /xmake/modules/core/tools/gcc.lua
parent6b4f659ec96a0271c12859ba17a7f56be3bcdcf3 (diff)
fix strip for xros
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index eb2e78641..6ccf50266 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -86,7 +86,7 @@ function nf_strip(self, level, target)
debug = "-Wl,-S"
, all = "-s"
}
- if self:is_plat("macosx", "iphoneos") then
+ if self:is_plat("macosx", "iphoneos", "watchos", "appletvos", "applexros") then
maps.all = {"-Wl,-x", "-Wl,-dead_strip"}
elseif self:is_plat("windows") then
-- clang does not it on windows, TODO maybe we need test it for gcc