diff options
| -rw-r--r-- | xmake/modules/detect/tools/find_7z.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_7z.lua b/xmake/modules/detect/tools/find_7z.lua index b441c2200..ce1a04f4a 100644 --- a/xmake/modules/detect/tools/find_7z.lua +++ b/xmake/modules/detect/tools/find_7z.lua @@ -55,6 +55,11 @@ function main(opt) program = find_program("7za", opt) end + -- find it from msys/mingw, it is only a shell script + if not program and is_subhost("msys") then + program = find_program("sh 7z", opt) + end + -- find program version local version = nil if program and opt and opt.version then |
