diff options
| -rw-r--r-- | xmake/rules/c++/modules/clang/support.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/c++/modules/gcc/support.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/clang/support.lua b/xmake/rules/c++/modules/clang/support.lua index 3eb591056..f35796959 100644 --- a/xmake/rules/c++/modules/clang/support.lua +++ b/xmake/rules/c++/modules/clang/support.lua @@ -71,7 +71,7 @@ function _get_cpplibrary_name(target) elseif target:has_runtime("MD", "MT", "MDd", "MTd") then return "msstl" end - if target:is_plat("macosx") or target:is_plat("ios") or target:is_plat("tvos") then + if target:is_plat("macosx", "iphoneos", "appletvos") then return "c++" elseif target:is_plat("linux") then return "stdc++" diff --git a/xmake/rules/c++/modules/gcc/support.lua b/xmake/rules/c++/modules/gcc/support.lua index d8ab791eb..93fb03072 100644 --- a/xmake/rules/c++/modules/gcc/support.lua +++ b/xmake/rules/c++/modules/gcc/support.lua @@ -147,9 +147,9 @@ function _get_std_module_manifest_path(target) end end local ext = ".so" - if target:is_plat("windows") or target:is_plat("mingw") then + if target:is_plat("windows", "mingw") then ext = ".dll" - elseif target:is_plat("macos") or target:is_plat("ios") or target:is_plat("tvos") then + elseif target:is_plat("macos", "iphoneos", "tvos") then ext = ".dylib" end local stdcpp_libfile, _ = try { |
