build: adjust LuaJIT build system
LuaJIT submodule is bumped to introduce the following changes: * test: run luacheck static analysis via CMake * test: fix warnings found with luacheck in misclib* * test: run LuaJIT tests via CMake * build: replace GNU Make with CMake * build: preserve the original build system Since LuaJIT build system is ported to CMake in scope of the changeset mentioned above, the module building the LuaJIT bundled in Tarantool is completely reworked. There is no option to build Tarantool against another prebuilt LuaJIT due to a91962c0 ('Until Bug#962848 is fixed, don't try to compile with external LuaJIT'), so all redundant options defining the libluajit to be used in Tarantool are dropped with the related auxiliary files. To run LuaJIT related tests or static analysis for Lua files within LuaJIT repository, <LuaJIT-test> and <LuaJIT-luacheck> targets are used respectively as a dependency of the corresponding Tarantool targets. As an additional dependency to run LuaJIT tests, prove[1] utility is required, so the necessary binary packages are added to the lists with build requirements. [1]: https://metacpan.org/pod/TAP::Harness#prove Closes #4862 Closes #5470 Closes #5631 Reviewed-by:Sergey Kaplun <skaplun@tarantool.org> Reviewed-by:
Timur Safin <tsafin@tarantool.org> Signed-off-by:
Igor Munkin <imun@tarantool.org>
Showing
- .luacheckrc 0 additions, 1 deletion.luacheckrc
- CMakeLists.txt 1 addition, 1 deletionCMakeLists.txt
- changelogs/unreleased/luajit-cmake.md 5 additions, 0 deletionschangelogs/unreleased/luajit-cmake.md
- cmake/luajit.cmake 106 additions, 288 deletionscmake/luajit.cmake
- cmake/luatest.cpp 0 additions, 80 deletionscmake/luatest.cpp
- debian/control 2 additions, 0 deletionsdebian/control
- rpm/tarantool.spec 2 additions, 0 deletionsrpm/tarantool.spec
- src/CMakeLists.txt 14 additions, 14 deletionssrc/CMakeLists.txt
- test/CMakeLists.txt 2 additions, 16 deletionstest/CMakeLists.txt
- third_party/luajit 1 addition, 1 deletionthird_party/luajit
Loading
Please register or sign in to comment