summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-05-12 11:48:59 +0200
committerArthur LAURENT <[email protected]>2025-05-12 11:48:59 +0200
commit0e5658bef9b7dc7b57ac270fc3392b048c6f89a8 (patch)
tree75c7341afbd60f13c0035dbd033336bfb4401e21 /xmake/rules/c++/modules
parentd14cbdeb1a7d84e58d7b17421e0e8904c44aef46 (diff)
(C++ modules support) improve clang/gcc support.lua
Diffstat (limited to 'xmake/rules/c++/modules')
-rw-r--r--xmake/rules/c++/modules/clang/support.lua2
-rw-r--r--xmake/rules/c++/modules/gcc/support.lua4
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 {