summaryrefslogtreecommitdiff
path: root/xmake/actions/require/impl/environment.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-01 21:01:46 +0800
committerruki <[email protected]>2020-10-01 21:01:46 +0800
commit324888041ba9f6a2e591fd7f8e9782ab0a655dad (patch)
treef5bec583c302e78bc41c8af677994ca200ce12b4 /xmake/actions/require/impl/environment.lua
parent4506160a7ecbc7fe7ae00e5d56eb60f4cc0604b1 (diff)
fix find unzip for requires
Diffstat (limited to 'xmake/actions/require/impl/environment.lua')
-rw-r--r--xmake/actions/require/impl/environment.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/require/impl/environment.lua b/xmake/actions/require/impl/environment.lua
index 5adece2ca..7104d1e8e 100644
--- a/xmake/actions/require/impl/environment.lua
+++ b/xmake/actions/require/impl/environment.lua
@@ -37,9 +37,9 @@ function enter()
-- set search paths of toolchains
environment.enter("toolchains")
- -- unzip is necessary
- if not find_tool("unzip") then
- raise("unzip not found! we need install it first")
+ -- unzip or 7zip is necessary
+ if not find_tool("unzip") and not find_tool("7z") then
+ raise("unzip or 7zip not found! we need install it first")
end
-- enter the environments of git and 7z