meson: bump req to >= 0.55 and use meson.can_run_host_binaries()
authorTim-Philipp Müller <tim@centricular.com>
Sat, 29 Oct 2022 22:32:58 +0000 (23:32 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 29 Oct 2022 22:32:58 +0000 (23:32 +0100)
.. instead of the deprecated meson.has_exe_wrapper()

meson.build
tools/meson.build

index 4b2d5bd..b59423b 100644 (file)
@@ -1,5 +1,5 @@
 project ('orc', 'c', version : '0.4.32',
-                     meson_version : '>= 0.54.0',
+                     meson_version : '>= 0.55.0',
                      default_options : ['buildtype=debugoptimized',
                                         'warning_level=1'] )
 
index 0711ff1..127728a 100644 (file)
@@ -3,7 +3,7 @@ orcc = executable ('orcc', 'orcc.c',
                    dependencies : [libm, orc_dep])
 
 # Make orcc usable for other subprojects
-if meson.has_exe_wrapper()
+if meson.can_run_host_binaries()
   meson.override_find_program('orcc', orcc)
 endif