diff options
| author | ruki <[email protected]> | 2020-10-07 15:33:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-07 15:33:18 +0800 |
| commit | 9593868eec9d4ec509d81933f406c64c7a422903 (patch) | |
| tree | c332aff7c50f6ead4eaf94462acfa8f9b36a95f1 | |
| parent | 089b3b754c5b1bfe580a3b3e3b19d506490f9749 (diff) | |
fix find_mingw.lua
| -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 |
