Merge pull request #3325 from ShayAgros/fail_lua_54
Fail awesome compilation for Lua5.4 or newer (#3324)
This commit is contained in:
commit
c8d3de3ff4
|
@ -71,6 +71,14 @@ if (NOT LUA_FOUND)
|
||||||
"You might want to hint it using the LUA_DIR environment variable, "
|
"You might want to hint it using the LUA_DIR environment variable, "
|
||||||
"or set the LUA_INCLUDE_DIR / LUA_LIBRARY CMake variables.")
|
"or set the LUA_INCLUDE_DIR / LUA_LIBRARY CMake variables.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(LUA_FULL_VERSION "${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.${LUA_VERSION_PATCH}")
|
||||||
|
# 5.1 <= LUA_VERSION < 5.4
|
||||||
|
if(NOT ((LUA_FULL_VERSION VERSION_EQUAL 5.1.0 OR LUA_FULL_VERSION VERSION_GREATER 5.1.0) AND LUA_FULL_VERSION VERSION_LESS 5.4.0))
|
||||||
|
message(FATAL_ERROR "Awesome only supports Lua versions 5.1-5.3, please refer to"
|
||||||
|
"https://awesomewm.org/apidoc/documentation/10-building-and-testing.md.html#Building")
|
||||||
|
endif()
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# {{{ Check if documentation can be build
|
# {{{ Check if documentation can be build
|
||||||
|
|
4
luaa.h
4
luaa.h
|
@ -31,6 +31,10 @@
|
||||||
#include "common/lualib.h"
|
#include "common/lualib.h"
|
||||||
#include "common/luaclass.h"
|
#include "common/luaclass.h"
|
||||||
|
|
||||||
|
#if !(501 <= LUA_VERSION_NUM && LUA_VERSION_NUM < 504)
|
||||||
|
#error "Awesome only supports Lua versions 5.1-5.3 and LuaJIT2, please refer to https://awesomewm.org/apidoc/documentation/10-building-and-testing.md.html#Building"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define luaA_deprecate(L, repl) \
|
#define luaA_deprecate(L, repl) \
|
||||||
do { \
|
do { \
|
||||||
luaA_warn(L, "%s: This function is deprecated and will be removed, see %s", \
|
luaA_warn(L, "%s: This function is deprecated and will be removed, see %s", \
|
||||||
|
|
Loading…
Reference in New Issue