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 | |
| parent | 6b4f659ec96a0271c12859ba17a7f56be3bcdcf3 (diff) | |
fix strip for xros
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 | ||||
| -rw-r--r-- | xmake/toolchains/xcode/load_applexros.lua | 4 |
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) |
