From 9e2a00d71fd617d79f2a4dafae8b58c5a24784de Mon Sep 17 00:00:00 2001 From: Tomasz Michalak Date: Tue, 27 Dec 2022 11:37:14 +0100 Subject: [PATCH] builder: Fix logic for determining meson version compatibility Signed-off-by: Tomasz Michalak --- litex/soc/integration/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 7c4abccaf..17f6830f3 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -262,7 +262,7 @@ class Builder: msg = "Unable to find valid Meson build system, please install it with:\n" msg += "- pip3 install meson.\n" 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 += "Try updating with:\n" msg += "- pip3 install -U meson.\n"