Skip to content

Commit

Permalink
meson: Verify that our Vala compiler is being used
Browse files Browse the repository at this point in the history
To avoid confusing errors later in the build process.
  • Loading branch information
oleavr committed Mar 14, 2024
1 parent a21aadc commit 5138409
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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@'
Expand Down

0 comments on commit 5138409

Please sign in to comment.