diff options
-rw-r--r-- | player/lua.c | 5 | ||||
-rw-r--r-- | waftools/checks/custom.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c index 7e44ec4c58..43f549b4ed 100644 --- a/player/lua.c +++ b/player/lua.c @@ -377,6 +377,11 @@ static int load_lua(struct mpv_handle *client, const char *fname) .filename = fname, }; + if (LUA_VERSION_NUM != 501 && LUA_VERSION_NUM != 502) { + MP_FATAL(ctx, "Only Lua 5.1 and 5.2 are supported.\n"); + goto error_out; + } + lua_State *L = ctx->state = luaL_newstate(); if (!L) goto error_out; diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py index d168d9e977..97c65e3cd0 100644 --- a/waftools/checks/custom.py +++ b/waftools/checks/custom.py @@ -54,7 +54,7 @@ def check_lua(ctx, dependency_identifier): ( '51', 'lua >= 5.1.0 lua < 5.2.0'), ( '51deb', 'lua5.1 >= 5.1.0'), # debian ( '51fbsd', 'lua-5.1 >= 5.1.0'), # FreeBSD - ( '52', 'lua >= 5.2.0' ), + ( '52', 'lua >= 5.2.0 lua < 5.3.0' ), ( '52deb', 'lua5.2 >= 5.2.0'), # debian ( '52fbsd', 'lua-5.2 >= 5.2.0'), # FreeBSD ( 'luajit', 'luajit >= 2.0.0' ), |