meson: prefer LuaJIT over PUC Lua

LuaJIT is the only relevant target in practice, PUC lua 5.1/5.2 is not
maintained. We should remove support for it at some point, but that's
for another day.
This commit is contained in:
Kacper Michajłow
2026-10-14 19:28:32 +02:00
parent 7c4f662c08
commit 492bae0768
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -740,11 +740,11 @@ endif
lua = dependency('', required: false)
lua_opt = get_option('lua')
if lua_opt != 'disabled'
lua_version = [['lua', ['>=5.1.0', '<5.3.0']], # generic lua.pc
lua_version = [['luajit', '>= 2.0.0'],
['lua', ['>=5.1.0', '<5.3.0']], # generic lua.pc
['lua52', '>= 5.2.0'],
['lua5.2', '>= 5.2.0'],
['lua-5.2', '>= 5.2.0'],
['luajit', '>= 2.0.0'],
['lua51', '>= 5.1.0'],
['lua5.1', '>= 5.1.0'],
['lua-5.1', '>= 5.1.0']]
+1 -1
View File
@@ -23,7 +23,7 @@ option('libbluray', type: 'feature', value: 'auto', description: 'Bluray support
option('libcurl', type: 'feature', value: 'auto', description: 'libcurl-based stream backend')
option('lua',
type: 'combo',
choices: ['lua', 'lua52', 'lua5.2', 'lua-5.2', 'luajit', 'lua51',
choices: ['luajit', 'lua', 'lua52', 'lua5.2', 'lua-5.2', 'lua51',
'lua5.1', 'lua-5.1', 'auto', 'enabled', 'disabled'],
value: 'auto',
description: 'Lua'