summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-13 18:05:27 +0800
committerOpportunity <[email protected]>2020-01-13 18:05:27 +0800
commite011000482dccb3e215d0eb895e280de6cda627e (patch)
tree0f7706e3ff758580b6617a653342d0c610cab21e
parent9be0f1dacbdcd71aead146a57186f29b62011525 (diff)
Add 7za
-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