diff options
| author | Redbeanw44602 <[email protected]> | 2025-05-19 00:02:44 +0800 |
|---|---|---|
| committer | Redbeanw44602 <[email protected]> | 2025-05-19 00:02:44 +0800 |
| commit | 86eceab5f095a00260a53fddae5509e24a17b7e5 (patch) | |
| tree | c722b3eedb252d0cd59309cda694381c4301af50 | |
| parent | 37beebba7994085b28b7a0de2e6cd9cdc57fc186 (diff) | |
use `opt.plat`
| -rw-r--r-- | xmake/modules/detect/sdks/find_dia_sdk.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/sdks/find_dia_sdk.lua b/xmake/modules/detect/sdks/find_dia_sdk.lua index 4e8956b3a..102a66814 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", {plat = config.get("plat"), arch = opt.arch or config.get("arch")}) + local msvc = toolchain.load("msvc", {plat = opt.plat or config.get("plat"), arch = opt.arch or config.get("arch")}) if msvc and msvc:check() then local vcvars = msvc:config("vcvars") if vcvars then @@ -99,7 +99,7 @@ end -- find DIA SDK -- -- @param sdkdir the DIA SDK directory --- @param opt the argument options, e.g. {toolchain = ..., arch = ..., force = false, verbose = false} +-- @param opt the argument options, e.g. {toolchain = ..., plat = ..., arch = ..., force = false, verbose = false} -- -- @return the DIA SDK. e.g. {sdkdir = ..., linkdirs = ..., includedirs = ...} -- |
