diff options
| author | ruki <[email protected]> | 2025-12-12 09:07:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-12 09:07:56 +0800 |
| commit | 2427bd350baa6331c5dfd62b2ab291737c7e5f49 (patch) | |
| tree | fc3737458b6a052ff1f6c89075a8df314e53447a | |
| parent | 245d472158edc782c4ee7ddb6d47be65270c5451 (diff) | |
| parent | 8880e8c81f129c6bc363ec66767e9a991c8cfbaa (diff) | |
Merge pull request #7124 from star-hengxing/patch-1
Fix default msvc runtime for clang toolchain
| -rw-r--r-- | xmake/rules/utils/compiler_runtime/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/utils/compiler_runtime/xmake.lua b/xmake/rules/utils/compiler_runtime/xmake.lua index 393133a7e..6a59d7ace 100644 --- a/xmake/rules/utils/compiler_runtime/xmake.lua +++ b/xmake/rules/utils/compiler_runtime/xmake.lua @@ -44,7 +44,7 @@ rule("utils.compiler.runtime") -- enable vs runtime as MD by default if target:is_plat("windows") and not target:get("runtimes") then local vs_runtime_default = target:policy("build.c++.msvc.runtime") - if vs_runtime_default and target:has_tool("cxx", "cl", "clang_cl") then + if vs_runtime_default and target:has_tool("cxx", "cl", "clang", "clang_cl") then if is_mode("debug") then vs_runtime_default = vs_runtime_default .. "d" end |
