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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user