diff options
| author | ruki <[email protected]> | 2023-10-13 23:35:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-13 23:35:07 +0800 |
| commit | a0bb01624626ec060da172aa13ec41428dd1761b (patch) | |
| tree | 925d9dbea87edf2962af16509b63aac25be5123d /xmake/modules/core/tools/gcc.lua | |
| parent | 6b4f659ec96a0271c12859ba17a7f56be3bcdcf3 (diff) | |
fix strip for xros
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
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 |
