meson.build: require GCC 12 or clang 14

GCC 10 doesn't have std::make_unique_for_overwrite(), so let's drop it.
This commit is contained in:
Max Kellermann
2025-01-29 12:23:17 +01:00
parent 8ea3f86f43
commit ab011adf77
6 changed files with 11 additions and 16 deletions

View File

@@ -102,10 +102,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('<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.')
if compiler.get_id() == 'gcc' and compiler.version().version_compare('<12')
warning('Your GCC version is too old. You need at least version 12.')
elif compiler.get_id() == 'clang' and compiler.version().version_compare('<14')
warning('Your clang version is too old. You need at least version 14.')
endif
version_conf = configuration_data()