diff options
| -rw-r--r-- | xmake/modules/detect/sdks/find_mingw.lua | 2 |
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 a5bf55932..777ad3b6a 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 for _, p in ipairs(path.splitenv(pathenv)) do - if p:find("mingw[%w%-%_%+]+[\\/]bin") and path.filename(p) == "bin" and os.isdir(p) then + if p:find(string.ipattern("mingw[%w%-%_%+]*[\\/]bin")) and path.filename(p) == "bin" and os.isdir(p) then sdkdir = path.directory(p) break end |
