summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-16 23:53:42 +0800
committerruki <[email protected]>2022-03-16 23:53:42 +0800
commitf9eef2e8629b4c304d4ee668d932b746efe95491 (patch)
tree4e81b7eb2458c8657880de32422f13817bcb3009 /xmake/modules/detect
parente4ca9d42da37793d9c414e22eb6da73fb81a2a06 (diff)
improve find_mingw
Diffstat (limited to 'xmake/modules/detect')
-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 cbae81d8c..69b6a1df9 100644
--- a/xmake/modules/detect/sdks/find_mingw.lua
+++ b/xmake/modules/detect/sdks/find_mingw.lua
@@ -49,7 +49,7 @@ function _find_mingwdir(sdkdir)
local pathenv = os.getenv("PATH")
if pathenv then
local buildhash_pattern = string.rep('%x', 32)
- local match_pattern = "[\\/]packages[\\/]m[\\/]mingw[%w%-%_%+]*[\\/][^\\/]+[\\/]" .. buildhash_pattern .. "[\\/]bin"
+ local match_pattern = "[\\/]packages[\\/]%w[\\/].*mingw.*[\\/][^\\/]+[\\/]" .. buildhash_pattern .. "[\\/]bin"
for _, p in ipairs(path.splitenv(pathenv)) do
if (p:find(match_pattern) or p:find(string.ipattern("mingw[%w%-%_%+]*[\\/]bin"))) and
path.filename(p) == "bin" and os.isdir(p) then