[MinGW] Fix GCC ar detection.

This commit is contained in:
bruvzg 2024-09-09 10:39:48 +03:00
parent d0dc3896ad
commit b1f9271e49
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -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])