From b1f9271e49bd1041ef2ae22e33f44ba9d68051f0 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 9 Sep 2024 10:39:48 +0300 Subject: [PATCH] [MinGW] Fix GCC ar detection. --- platform/windows/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 92ac921ceeb..684a7c34a00 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -666,7 +666,7 @@ def get_ar_version(env): print_warning("Couldn't check version of `ar`.") return ret - match = re.search(r"GNU ar \(GNU Binutils\) (\d+)\.(\d+)(:?\.(\d+))?", output) + match = re.search(r"GNU ar \(GNU Binutils\) (\d+)\.(\d+)(?:\.(\d+))?", output) if match: ret["major"] = int(match[1]) ret["minor"] = int(match[2])