comparison util/dependencies.lua @ 11140:e17b98feb0b7 0.11

util.dependencies: Check for bitop library same way as net.websocket.frames (fixes #1594)
author Kim Alvefur <zash@zash.se>
date Mon, 05 Oct 2020 22:12:29 +0200
parents cb92e1c8b6db
children a5acd6354845
comparison
equal deleted inserted replaced
11128:c3eefb517b7b 11140:e17b98feb0b7
88 ["luarocks"] = "luarocks install luasec"; 88 ["luarocks"] = "luarocks install luasec";
89 ["Source"] = "https://github.com/brunoos/luasec"; 89 ["Source"] = "https://github.com/brunoos/luasec";
90 }, "SSL/TLS support will not be available"); 90 }, "SSL/TLS support will not be available");
91 end 91 end
92 92
93 local bit = _G.bit32 or softreq"bit"; 93 local bit = softreq"bit" or softreq"bit32";
94 94
95 if not bit then 95 if not bit then
96 missingdep("lua-bitops", { 96 missingdep("lua-bitops", {
97 ["Debian/Ubuntu"] = "sudo apt-get install lua-bitop"; 97 ["Debian/Ubuntu"] = "sudo apt-get install lua-bitop";
98 ["luarocks"] = "luarocks install luabitop"; 98 ["luarocks"] = "luarocks install luabitop";