mirror of
https://github.com/neovim/neovim.git
synced 2026-01-28 15:46:05 +00:00
build: luarocks: fall back to luajit (#10297)
This regressed in 204ec6337.
Currently it would detect/use lua5.3 from the system, but in general
luajit is / should be preferred.
Noticed this due to nvim-client failing to build with Lua 5.3
(https://github.com/neovim/lua-client/pull/43).
This commit is contained in:
9
third-party/cmake/BuildLuarocks.cmake
vendored
9
third-party/cmake/BuildLuarocks.cmake
vendored
@@ -61,6 +61,15 @@ if(UNIX OR (MINGW AND CMAKE_CROSSCOMPILING))
|
||||
elseif(USE_BUNDLED_LUA)
|
||||
list(APPEND LUAROCKS_OPTS
|
||||
--with-lua=${HOSTDEPS_INSTALL_DIR})
|
||||
else()
|
||||
list(APPEND CMAKE_MODULE_PATH "../cmake")
|
||||
find_package(LuaJit)
|
||||
if(LUAJIT_FOUND)
|
||||
list(APPEND LUAROCKS_OPTS
|
||||
--lua-version=5.1
|
||||
--with-lua-include=${LUAJIT_INCLUDE_DIRS}
|
||||
--lua-suffix=jit)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
BuildLuarocks(
|
||||
|
||||
Reference in New Issue
Block a user