mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-16 22:40:53 +08:00
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:
+2
-2
@@ -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
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user