meson.build: update the required GCC/clang versions

This commit is contained in:
Max Kellermann 2024-07-08 15:44:42 +02:00
parent 3229da48e3
commit bdc5602244
1 changed files with 4 additions and 4 deletions

View File

@ -98,10 +98,10 @@ version_cxx = vcs_tag(input: 'src/GitVersion.cxx', output: 'GitVersion.cxx')
compiler = meson.get_compiler('cpp')
c_compiler = meson.get_compiler('c')
if compiler.get_id() == 'gcc' and compiler.version().version_compare('<8')
warning('Your GCC version is too old. You need at least version 8.')
elif compiler.get_id() == 'clang' and compiler.version().version_compare('<7')
warning('Your clang version is too old. You need at least version 7.')
if compiler.get_id() == 'gcc' and compiler.version().version_compare('<10')
warning('Your GCC version is too old. You need at least version 10.')
elif compiler.get_id() == 'clang' and compiler.version().version_compare('<11')
warning('Your clang version is too old. You need at least version 11.')
endif
version_conf = configuration_data()