summaryrefslogtreecommitdiff
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
parent6b4f659ec96a0271c12859ba17a7f56be3bcdcf3 (diff)
fix strip for xros
-rw-r--r--xmake/modules/core/tools/gcc.lua2
-rw-r--r--xmake/toolchains/xcode/load_applexros.lua4
2 files changed, 3 insertions, 3 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
diff --git a/xmake/toolchains/xcode/load_applexros.lua b/xmake/toolchains/xcode/load_applexros.lua
index d26fed61f..f4f5ec596 100644
--- a/xmake/toolchains/xcode/load_applexros.lua
+++ b/xmake/toolchains/xcode/load_applexros.lua
@@ -44,8 +44,8 @@ function main(toolchain)
-- init flags for c/c++
toolchain:add("cxflags", "-isysroot", xcode_sysroot)
- toolchain:add("ldflags", "-ObjC", "-lstdc++", "-fobjc-link-runtime", "-isysroot", xcode_sysroot)
- toolchain:add("shflags", "-ObjC", "-lstdc++", "-fobjc-link-runtime", "-isysroot", xcode_sysroot)
+ toolchain:add("ldflags", "-ObjC", "-fobjc-link-runtime", "-isysroot", xcode_sysroot)
+ toolchain:add("shflags", "-ObjC", "-fobjc-link-runtime", "-isysroot", xcode_sysroot)
-- init flags for objc/c++
toolchain:add("mxflags", "-isysroot", xcode_sysroot)