builder: Fix logic for determining meson version compatibility

Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
This commit is contained in:
Tomasz Michalak 2022-12-27 11:37:14 +01:00
parent e8322587a0
commit 9e2a00d71f
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ class Builder:
msg = "Unable to find valid Meson build system, please install it with:\n" msg = "Unable to find valid Meson build system, please install it with:\n"
msg += "- pip3 install meson.\n" msg += "- pip3 install meson.\n"
raise OSError(msg) raise OSError(msg)
if (int(meson_version[0]) < meson_major_min) or (int(meson_version[1]) < meson_minor_min): if (int(meson_version[0]) < meson_major_min) or (int(meson_version[0]) == meson_major_min and int(meson_version[1]) < meson_minor_min):
msg = f"Meson version to old. Found: {meson_version[0]}.{meson_version[1]}. Required: {meson_major_min}.{meson_minor_min}.\n" msg = f"Meson version to old. Found: {meson_version[0]}.{meson_version[1]}. Required: {meson_major_min}.{meson_minor_min}.\n"
msg += "Try updating with:\n" msg += "Try updating with:\n"
msg += "- pip3 install -U meson.\n" msg += "- pip3 install -U meson.\n"