meson: fix not obeyed forcefallback for lua

This commit is contained in:
jgmdev 2022-05-30 13:24:53 -04:00
parent 807d7a07fe
commit e7d2b03e62
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ if not get_option('source-only')
]
foreach lua : lua_names
last_lua = (lua == lua_names[-1])
last_lua = (lua == lua_names[-1] or get_option('wrap_mode') == 'forcefallback')
lua_dep = dependency(lua, fallback: last_lua ? ['lua', 'lua_dep'] : [], required : last_lua,
version: '>= 5.4',
default_options: default_fallback_options + ['default_library=static', 'line_editing=false', 'interpreter=false']