From e011000482dccb3e215d0eb895e280de6cda627e Mon Sep 17 00:00:00 2001 From: Opportunity Date: Mon, 13 Jan 2020 18:05:27 +0800 Subject: Add 7za --- xmake/modules/detect/tools/find_7z.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmake/modules/detect/tools/find_7z.lua b/xmake/modules/detect/tools/find_7z.lua index 2d557e921..7dc4e5a2a 100644 --- a/xmake/modules/detect/tools/find_7z.lua +++ b/xmake/modules/detect/tools/find_7z.lua @@ -42,9 +42,12 @@ function main(opt) opt.check = opt.check or "--help" opt.command = opt.command or "--help" opt.parse = "(%d+%.?%d*)%s" - + -- find program local program = find_program(opt.program or "7z", opt) + if not program and not opt.program then + program = find_program("7za", opt) + end -- find program version local version = nil -- cgit v1.3.1