meson/freedreno: Fix lua requirement
authorDylan Baker <dylan.c.baker@intel.com>
Fri, 7 Aug 2020 16:14:03 +0000 (09:14 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Aug 2020 17:27:00 +0000 (17:27 +0000)
Freedreno needs at least Lua 5.2, but the current code will report found
for 5.1, which doesn't actually work.

Fixes: caa107cb8db930bc59cd557a325a6a0bc4a86565
       ("freedreno/decode: move dependencies up a level")

Reviewed-by: Rob Clark <robclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6229>

src/freedreno/meson.build

index 64108c57756d3023841b9feb32e2dc02ad1c1cea..f6219502886fcf4dc1d52b5a75eae61cff06cf14 100644 (file)
@@ -30,7 +30,7 @@ if not dep_lua.found()
   dep_lua = dependency('lua52', required: false)
 endif
 if not dep_lua.found()
-  dep_lua = dependency('lua', required: false)
+  dep_lua = dependency('lua', required: false, version : '>=5.2')
 endif
 
 dep_libarchive = dependency('libarchive', required: false)