From c334d2bd38ae7858976bcd7c4553c11e38110c05 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 21 Mar 2023 11:05:42 -0700 Subject: build: error if lua51 was requested but failed If we fail to find lua51/luajit and lgi, but -Dlua51=true was specified, then error instead of silently continuing. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 44934a4..87828f7 100644 --- a/meson.build +++ b/meson.build @@ -330,7 +330,7 @@ endif build_lua51_loader = get_option('lua51') lua51_found = (luajit_dep.found() or lua51_dep.found()) and lua_lgi_found if build_lua51_loader and not lua51_found - build_lua51_loader = false + error('Lua51 requested by failed to locate suitable Lua51 and LGI support') endif build_python3_loader = get_option('python3') -- cgit v1.2.1