From 51384094d2ffaee2aa092c3cc6f42728937b434a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 14 Mar 2024 13:41:39 +0100 Subject: [PATCH] meson: Verify that our Vala compiler is being used To avoid confusing errors later in the build process. --- meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meson.build b/meson.build index 534ea6667..e141901fb 100644 --- a/meson.build +++ b/meson.build @@ -4,6 +4,15 @@ project('frida-core', 'vala', 'c', 'cpp', default_options: ['c_std=gnu99,c99', 'cpp_std=c++17'], ) +if not meson.get_compiler('vala').version().endswith('-frida') + error('''Incompatible Vala compiler detected. + +Frida currently relies on features not yet upstream. Grab the Frida-optimized +Vala compiler from: + + https://github.com/frida/vala''') +endif + api_version = '1.0' header_install_dir = get_option('includedir') / f'frida-@api_version@'