From 227ca7d0e5618896e38fa620cab6541253cd126f Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 15 Jan 2022 01:00:51 +0100 Subject: [PATCH] use lua fallback earlier when fallbacks are forced --- meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ccc84cb3..46ddcac8 100644 --- a/meson.build +++ b/meson.build @@ -51,7 +51,14 @@ if not get_option('source-only') libdl = cc.find_library('dl', required : false) threads_dep = dependency('threads') - lua_dep = dependency('lua5.4', required : false) + + lua_fallback = ['lua', 'lua_dep'] + lua_quick_fallback = [] + if get_option('wrap_mode') == 'forcefallback' + lua_quick_fallback = lua_fallback + endif + + lua_dep = dependency('lua5.4', fallback: lua_quick_fallback, required : false) if not lua_dep.found() lua_dep = dependency('lua', fallback: ['lua', 'lua_dep'], default_options: ['default_library=static', 'line_editing=false', 'interpreter=false']