builder: Fix logic for determining meson version compatibility
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
This commit is contained in:
parent
e8322587a0
commit
9e2a00d71f
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue