Skip to content

Commit 5e77488

Browse files
committed
fix(llvm) set default runtimes for clang windows
1 parent 56e8652 commit 5e77488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/rules/utils/compiler_runtime/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ rule("utils.compiler.runtime")
4444
-- enable vs runtime as MD by default
4545
if target:is_plat("windows") and not target:get("runtimes") then
4646
local vs_runtime_default = target:policy("build.c++.msvc.runtime")
47-
if vs_runtime_default and target:has_tool("cxx", "cl", "clang_cl") then
47+
if vs_runtime_default and target:has_tool("cxx", "cl", "clang", "clang_cl") then
4848
if is_mode("debug") then
4949
vs_runtime_default = vs_runtime_default .. "d"
5050
end

0 commit comments

Comments
 (0)