summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-23 23:37:40 +0800
committerruki <[email protected]>2025-12-23 23:37:40 +0800
commit0497293c09538713734b1b76b0577263a7139e80 (patch)
treed855a3dc087f6475b064d30a706ae2fe44391dac
parent47f9f2604141a5995c88d28d00938020a547b6dc (diff)
fix envs for clang-cl
-rw-r--r--xmake/toolchains/clang-cl/load.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/toolchains/clang-cl/load.lua b/xmake/toolchains/clang-cl/load.lua
index 69f9c8297..e06883012 100644
--- a/xmake/toolchains/clang-cl/load.lua
+++ b/xmake/toolchains/clang-cl/load.lua
@@ -47,9 +47,6 @@ function main(toolchain)
toolchain:set("toolset", "ar", "link.exe")
end
- -- add vs environments
- toolchain_utils.add_vsenvs(toolchain)
-
-- add llvm runenvs before adding vsenvs
--
-- The dynamic libraries (DLLs) for Clang ASan and MSVC ASan share the same filename, making them incompatible.
@@ -57,6 +54,9 @@ function main(toolchain)
-- If the Clang path is not prioritized (placed first), the system incorrectly loads the MSVC ASan DLL, resulting in a runtime failure.
toolchain_utils.add_llvm_runenvs(toolchain)
+ -- add vs environments
+ toolchain_utils.add_vsenvs(toolchain)
+
-- add target flags
local flags = toolchain_utils.get_clang_target_flags(toolchain)
if flags then