diff options
| -rw-r--r-- | xmake/toolchains/clang-cl/load.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/toolchains/clang-cl/load.lua b/xmake/toolchains/clang-cl/load.lua index e06883012..69f9c8297 100644 --- a/xmake/toolchains/clang-cl/load.lua +++ b/xmake/toolchains/clang-cl/load.lua @@ -47,6 +47,9 @@ 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. @@ -54,9 +57,6 @@ 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 |
