summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/sdks/find_dia_sdk.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_dia_sdk.lua b/xmake/modules/detect/sdks/find_dia_sdk.lua
index 892c84cd4..4e8956b3a 100644
--- a/xmake/modules/detect/sdks/find_dia_sdk.lua
+++ b/xmake/modules/detect/sdks/find_dia_sdk.lua
@@ -41,7 +41,7 @@ function _find_sdkdir(sdkdir, opt)
end
end
if not vsdir then
- local msvc = toolchain.load("msvc")
+ local msvc = toolchain.load("msvc", {plat = config.get("plat"), arch = opt.arch or config.get("arch")})
if msvc and msvc:check() then
local vcvars = msvc:config("vcvars")
if vcvars then