Commit 97e9e4c1 authored by François Perrad's avatar François Perrad
Browse files

check if luac exists

parent 4db7e539
Pipeline #423658 passed with stages
in 2 minutes and 34 seconds
......@@ -45,6 +45,7 @@ end
local lua = _retrieve_progname()
local luac = jit and lua or (lua .. 'c')
local exists_luac = io.open(luac, 'r')
if not pcall(io.popen, lua .. [[ -e "a=1"]]) then
skip_all "io.popen not supported"
......@@ -78,7 +79,7 @@ else
end
f:close()
if has_bytecode then
if has_bytecode and exists_luac then
if jit then
os.execute(lua .. " -b hello-241.lua hello-241.luac")
else
......
......@@ -41,6 +41,10 @@ end
local lua = _retrieve_progname()
local luac = lua .. 'c'
if not io.open(luac, 'r') then
skip_all "no luac"
end
if not pcall(io.popen, lua .. [[ -e "a=1"]]) then
skip_all "io.popen not supported"
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment