Skip to content

Commit 0e5658b

Browse files
committed
(C++ modules support) improve clang/gcc support.lua
1 parent d14cbde commit 0e5658b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xmake/rules/c++/modules/clang/support.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function _get_cpplibrary_name(target)
7171
elseif target:has_runtime("MD", "MT", "MDd", "MTd") then
7272
return "msstl"
7373
end
74-
if target:is_plat("macosx") or target:is_plat("ios") or target:is_plat("tvos") then
74+
if target:is_plat("macosx", "iphoneos", "appletvos") then
7575
return "c++"
7676
elseif target:is_plat("linux") then
7777
return "stdc++"

xmake/rules/c++/modules/gcc/support.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ function _get_std_module_manifest_path(target)
147147
end
148148
end
149149
local ext = ".so"
150-
if target:is_plat("windows") or target:is_plat("mingw") then
150+
if target:is_plat("windows", "mingw") then
151151
ext = ".dll"
152-
elseif target:is_plat("macos") or target:is_plat("ios") or target:is_plat("tvos") then
152+
elseif target:is_plat("macos", "iphoneos", "tvos") then
153153
ext = ".dylib"
154154
end
155155
local stdcpp_libfile, _ = try {

0 commit comments

Comments
 (0)