diff options
| author | ruki <[email protected]> | 2024-01-22 22:44:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-25 12:09:58 +0800 |
| commit | 9f76e77a010c835f17a8a4ed65254df84e38d7e7 (patch) | |
| tree | d236177e6d19332da968f81fdcf955ac600ba52c | |
| parent | a74bb4c14a8eda9c70062c1c6f592f2474672b71 (diff) | |
remove stdc++ for apple os
| -rw-r--r-- | xmake/toolchains/xcode/load_appletvos.lua | 8 | ||||
| -rw-r--r-- | xmake/toolchains/xcode/load_applexros.lua | 4 | ||||
| -rw-r--r-- | xmake/toolchains/xcode/load_iphoneos.lua | 8 | ||||
| -rw-r--r-- | xmake/toolchains/xcode/load_macosx.lua | 6 | ||||
| -rw-r--r-- | xmake/toolchains/xcode/load_watchos.lua | 8 |
5 files changed, 6 insertions, 28 deletions
diff --git a/xmake/toolchains/xcode/load_appletvos.lua b/xmake/toolchains/xcode/load_appletvos.lua index aad701ad5..8d723149f 100644 --- a/xmake/toolchains/xcode/load_appletvos.lua +++ b/xmake/toolchains/xcode/load_appletvos.lua @@ -18,10 +18,6 @@ -- @file load_appletvos.lua -- --- imports -import("core.project.config") - --- main entry function main(toolchain) -- init architecture @@ -38,8 +34,8 @@ function main(toolchain) -- init flags for c/c++ toolchain:add("cxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) - toolchain:add("ldflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) - toolchain:add("shflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("ldflags", "-arch", arch, "-ObjC", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("shflags", "-arch", arch, "-ObjC", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) -- init flags for objc/c++ toolchain:add("mxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) diff --git a/xmake/toolchains/xcode/load_applexros.lua b/xmake/toolchains/xcode/load_applexros.lua index 61b142374..09805cdc3 100644 --- a/xmake/toolchains/xcode/load_applexros.lua +++ b/xmake/toolchains/xcode/load_applexros.lua @@ -18,10 +18,6 @@ -- @file load_applexros.lua -- --- imports -import("core.project.config") - --- main entry function main(toolchain) local arch = toolchain:arch() diff --git a/xmake/toolchains/xcode/load_iphoneos.lua b/xmake/toolchains/xcode/load_iphoneos.lua index 77a581b0c..a36fa50b9 100644 --- a/xmake/toolchains/xcode/load_iphoneos.lua +++ b/xmake/toolchains/xcode/load_iphoneos.lua @@ -18,10 +18,6 @@ -- @file load_iphoneos.lua -- --- imports -import("core.project.config") - --- main entry function main(toolchain) -- init architecture @@ -41,8 +37,8 @@ function main(toolchain) -- init flags for c/c++ toolchain:add("cxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) - toolchain:add("ldflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) - toolchain:add("shflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("ldflags", "-arch", arch, "-ObjC", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("shflags", "-arch", arch, "-ObjC", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) -- init flags for objc/c++ toolchain:add("mxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) diff --git a/xmake/toolchains/xcode/load_macosx.lua b/xmake/toolchains/xcode/load_macosx.lua index 039152067..071f8ec6d 100644 --- a/xmake/toolchains/xcode/load_macosx.lua +++ b/xmake/toolchains/xcode/load_macosx.lua @@ -18,10 +18,6 @@ -- @file load_macosx.lua -- --- imports -import("core.project.config") - --- main entry function main(toolchain) local arch = toolchain:arch() @@ -75,8 +71,6 @@ function main(toolchain) end -- init flags for c/c++ - toolchain:add("ldflags", "-stdlib=libc++") - toolchain:add("shflags", "-stdlib=libc++") toolchain:add("ldflags", "-lz") toolchain:add("shflags", "-lz") diff --git a/xmake/toolchains/xcode/load_watchos.lua b/xmake/toolchains/xcode/load_watchos.lua index a727776bd..cceabeb02 100644 --- a/xmake/toolchains/xcode/load_watchos.lua +++ b/xmake/toolchains/xcode/load_watchos.lua @@ -18,10 +18,6 @@ -- @file load_watchos.lua -- --- imports -import("core.project.config") - --- main entry function main(toolchain) -- init architecture @@ -38,8 +34,8 @@ function main(toolchain) -- init flags for c/c++ toolchain:add("cxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) - toolchain:add("ldflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) - toolchain:add("shflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("ldflags", "-arch", arch, "-ObjC", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("shflags", "-arch", arch, "-ObjC", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) -- init flags for objc/c++ toolchain:add("mxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) |
