Skip to content

Commit 86eceab

Browse files
committed
use opt.plat
1 parent 37beebb commit 86eceab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmake/modules/detect/sdks/find_dia_sdk.lua

Lines changed: 2 additions & 2 deletions
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", {plat = config.get("plat"), arch = opt.arch or config.get("arch")})
44+
local msvc = toolchain.load("msvc", {plat = opt.plat or 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
@@ -99,7 +99,7 @@ end
9999
-- find DIA SDK
100100
--
101101
-- @param sdkdir the DIA SDK directory
102-
-- @param opt the argument options, e.g. {toolchain = ..., arch = ..., force = false, verbose = false}
102+
-- @param opt the argument options, e.g. {toolchain = ..., plat = ..., arch = ..., force = false, verbose = false}
103103
--
104104
-- @return the DIA SDK. e.g. {sdkdir = ..., linkdirs = ..., includedirs = ...}
105105
--

0 commit comments

Comments
 (0)