summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-04 18:05:36 +0800
committerGitHub <[email protected]>2025-10-04 18:05:36 +0800
commit3ef0e493b6202539879289f7b51180177b7134cc (patch)
treee6d6d60efeae659ed26a471b535f35842c7a8dd0
parent85ee33be02afc40a7c5f91de1bb48d603f9a186c (diff)
Fix cacheinfo field reference for mingw detection
-rw-r--r--xmake/modules/detect/sdks/find_mingw.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua
index 448b89cec..37b6625c6 100644
--- a/xmake/modules/detect/sdks/find_mingw.lua
+++ b/xmake/modules/detect/sdks/find_mingw.lua
@@ -134,7 +134,7 @@ function main(sdkdir, opt)
-- attempt to load cache first
local key = "detect.sdks.find_mingw"
local cacheinfo = detectcache:get(key) or {}
- if not opt.force and cacheinfo.mingw and cacheinfo.mingw.sdkdir and os.isdir(cacheinfo.mingw.sdkdir) and cacheinfo.msystem == opt.msystem then
+ if not opt.force and cacheinfo.mingw and cacheinfo.mingw.sdkdir and os.isdir(cacheinfo.mingw.sdkdir) and cacheinfo.mingw.msystem == opt.msystem then
return cacheinfo.mingw
end