summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-21 11:05:42 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:45 -0700
commitc334d2bd38ae7858976bcd7c4553c11e38110c05 (patch)
treef22bef539792d86fd971341df7b76b1119f48506
parent6d5fb184c232b624d8d521125a009482d0d2bf3a (diff)
downloadlibpeas-c334d2bd38ae7858976bcd7c4553c11e38110c05.tar.gz
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.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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')