summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/tools/find_7z.lua5
1 files changed, 4 insertions, 1 deletions
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