The checks for the clang minor versions are currently redundant since there can never be a minor version less than zero. Going forward it is likely sufficient to always pick a NN.0.0 release as the min CLang version, so drop the minor version checks.
Acked-by: Marc-André Lureau <[email protected]> Reviewed-by: Pierrick Bouvier <[email protected]> Signed-off-by: Daniel P. Berrangé <[email protected]> --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index cfac634cf1..cb3eaf3abe 100644 --- a/meson.build +++ b/meson.build @@ -330,11 +330,11 @@ foreach lang : all_languages # ok elif compiler.get_id() == 'clang' and compiler.compiles(''' #ifdef __apple_build_version__ - # if __clang_major__ < 15 || (__clang_major__ == 15 && __clang_minor__ < 0) + # if __clang_major__ < 15 # error You need at least XCode Clang v15.0 to compile QEMU # endif #else - # if __clang_major__ < 10 || (__clang_major__ == 10 && __clang_minor__ < 0) + # if __clang_major__ < 10 # error You need at least Clang v10.0 to compile QEMU # endif #endif''') -- 2.55.0
