summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/c++/modules/modules_support/clang/compiler_support.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
index 49e01db90..4d6e6580a 100644
--- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
+++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
@@ -67,7 +67,14 @@ function _get_cpplibrary_name(target)
return "c++"
elseif target:has_runtime("stdc++_shared", "stdc++_static") then
return "stdc++"
- elseif target:is_plat("windows") and target:has_runtime("MD", "MT", "MDd", "MTd") then
+ elseif target:has_runtime("MD", "MT", "MDd", "MTd") then
+ return "msstl"
+ end
+ if target:is_plat("macosx") then
+ return "c++"
+ elseif target:is_plat("linux") then
+ return "stdc++"
+ elseif target:is_plat("windows") then
return "msstl"
end
end