mirror of
https://github.com/mesonbuild/meson.git
synced 2026-06-24 08:48:03 +00:00
Parse it just once, ahead of time, and pass it to version_compare_condition_with_min. This gives, for free, support for multi-argument meson.version().version_compare(). There are two changes in outputs: first, the output of version checks now canonicalizes the minimum Meson version; second, a '!=' or '<' meson_version does not count as a "minimum Meson version" in error messages (after all, they do not specify a minimum for the purpose of version_compare_condition_with_min) so a few testcases have to be adjusted. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>