Skip to content

Commit 37beebb

Browse files
committed
load msvc toolchain with specific plat/arch.
1 parent 8484eb4 commit 37beebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/modules/detect/sdks/find_dia_sdk.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function _find_sdkdir(sdkdir, opt)
4141
end
4242
end
4343
if not vsdir then
44-
local msvc = toolchain.load("msvc")
44+
local msvc = toolchain.load("msvc", {plat = config.get("plat"), arch = opt.arch or config.get("arch")})
4545
if msvc and msvc:check() then
4646
local vcvars = msvc:config("vcvars")
4747
if vcvars then

0 commit comments

Comments
 (0)