Skip to content

Commit

Permalink
core.main: Warn unless running on Linux/x64
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Jan 17, 2016
1 parent 6d46eca commit 4f5174c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ debug_on_error = false
function main ()
zone("startup")
require "lib.lua.strict"
-- Warn on unsupported platforms
if ffi.arch ~= 'x64' or ffi.os ~= 'Linux' then
io.stderr:write("Warning: "..ffi.os.."/"..ffi.arch.." is not a supported platform\n")
end
initialize()
local args = parse_command_line()
local program = programname(args[1])
Expand Down

0 comments on commit 4f5174c

Please sign in to comment.