diff options
| -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) |
